[generator] Introducing buildtime schema validation. #142

Merged
merged 2 commits into from Oct 13, 2011

Conversation

Projects
None yet
2 participants
Member

fzaninotto commented Oct 13, 2011

All schema validation cannot be done in XSD. For more complex validations,
some PHP processing is required. This patch moves validation logic into a
simple and independent validation service. It processes the whole schema
in order to output all error messages at once.
Closes #3. Closes #96.

@fzaninotto fzaninotto [generator] Introducing buildtime schema validation.
All schema validation cannot be done in XSD. For more complex validations,
some PHP processing is required. This patch moves validation logic into a
simple and independent validation service. It processes the whole schema
in order to output all error messages at once.
Closes #3. Closes #96.
8663103

@willdurand willdurand and 1 other commented on an outdated diff Oct 13, 2011

generator/lib/util/PropelSchemaValidator.php
@@ -0,0 +1,90 @@
+<?php
+
+/**
+ * This file is part of the Propel package.
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ *
+ * @license MIT License
+ */
+
+/**
+ * Service class for validating XML schemas.
+ * Only impleme,ts validation rules that cannot be implemented in XSD.

@willdurand willdurand added a commit that referenced this pull request Oct 13, 2011

@willdurand willdurand Merge pull request #142 from fzaninotto/buildtime_validation
[generator] Introducing buildtime schema validation.
22e6a72

@willdurand willdurand merged commit 22e6a72 into propelorm:master Oct 13, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment