153 Commits

Author SHA1 Message Date
alexmmm
4a67f42054 fix mock UriRetriever return value - json object instead of json string 2013-07-16 15:27:28 +02:00
alexmmm
2366f30864 add invalid cases to UriRetrieverTest, making the Test fail 2013-07-16 15:27:09 +02:00
alexmmm
e89b755aab types of draft 3 'required' properties are not checked when given as objects, add resp. unit tests 2013-07-14 23:54:26 +02:00
alexmmm
8d5443eccc add unit tests for draft 3 'required' objects 2013-07-14 23:52:50 +02:00
Michael Chiocca
2402bf50b2 Add support for draft-04 allOf, anyOf, and oneOf keywords. 2013-06-14 12:58:45 -07:00
Michael Chiocca
ebcb7c593c Add support for the draft-04 not keyword and unit test. 2013-06-13 14:50:22 -07:00
Michael Chiocca
86fa403c47 Add support for draft-04 multipleOf. 2013-06-11 14:52:44 -07:00
Michael Chiocca
522f0ae5be Fix #46. Add support for minProperties, maxProperties. 2013-06-06 08:22:32 -07:00
Michael Chiocca
60a0e09bc5 Add subset of draft-04 tests from JSON-Schema-Test-Suite. 2013-05-30 03:00:04 -07:00
Michael Chiocca
647a33a571 Add draft-03 tests from json-schema/JSON-Schema-Test-Suite. 2013-05-29 14:36:14 -07:00
Michael Chiocca
65bfb0a3c1 Fix divisibleBy for small numbers per draft unit tests. 2013-05-10 10:16:14 -07:00
Michael Chiocca
38ceb74018 Fix regex format validation and fix the regex format unit tests. 2013-05-09 17:34:34 -07:00
Michael Chiocca
62aef117bb Fix extends so that it accepts a schema or an array of schemas. 2013-05-09 11:55:06 -07:00
Michael Chiocca
c8f0f003df Implement dependencies per draft specification. Refactor required. 2013-05-08 15:01:57 -07:00
Michael Chiocca
c30751a5aa Fix issues with the use of disallow. Add draft v3 disallow unit tests. 2013-05-07 09:31:22 -07:00
Michael Chiocca
c230cad5f2 Fix issues with uniqueItems in arrays. Use var_export() instead of print_r(). 2013-05-07 07:10:04 -07:00
Michael Chiocca
e09aa0b7a3 Implement support for exclusiveMinimum and exclusiveMaximum. 2013-05-07 05:01:32 -07:00
Michael Chiocca
44c8fb61eb Fix issue #33: Strict type checking for number and integer types. 2013-05-07 02:35:41 -07:00
Michael Chiocca
4f39913653 Fix array types (items, additionalItems), and tuple typing. Add unit tests. 2013-05-01 14:16:30 -07:00
Michael Chiocca
1f1120ecc8 Fix issue #32: required properties ignored including new unit tests 2013-04-30 17:22:05 -07:00
Michael Chiocca
57a88c2aeb Fix a number of miscellaneous draft v3 bugs and add new unit tests. 2013-04-30 13:02:14 -07:00
Michael Chiocca
69769be6d7 Fix patternProperties bugs. Do pattern validation on the regex. Add new unit tests. 2013-04-26 16:07:37 -07:00
Justin Rainbow
1789a7678a Fixing PHPUnit tests + 1.4.x branch alias 2013-03-18 07:36:31 -07:00
Tyler Akins
183d1558aa Merge branch 'master' into ref 2013-02-20 13:16:07 -06:00
Justin Rainbow
e534692161 Merge pull request #28 from paranoiq/master
Support for ISO date-time with timezone offset without ":" separator
2013-02-18 08:30:39 -08:00
Vlasta Neubauer
3c14a4fd24 Support for date-time with timezone without ":" (also allowed by ISO 8601) 2013-02-18 13:44:43 +01:00
Justin Rainbow
19be076738 Adding a couple tests for #4 2013-02-17 21:17:24 -07:00
Tyler Akins
290eb1bc10 New test for ref resolver 2013-01-07 13:31:45 -06:00
Vlasta Neubauer
86631ea142 support for ISO 8601 date-times including UTC offset 2013-01-01 17:03:42 +01:00
Tyler Akins
3b55b8e018 Updating tests to use UriRetriever instead of the interface 2012-12-21 17:49:40 -06:00
Joakim Löfgren
5c4cf3dbc3 Add test cases for optional enums
Added test cases where required is set as true and false,
with the attribute omitted.
2012-08-11 00:07:20 +02:00
Antoine Hérault
539ac403ab Add predefined array based uri retriever 2012-07-20 22:45:38 +02:00
Antoine Hérault
584f4ccb28 Make url retriever property dynamic 2012-07-20 22:26:54 +02:00
Sander Coolen
535962c999 Added support for relative URIs. Note that UriResolver is nowhere near RFC 3986 compliant 2012-05-17 19:50:49 +02:00
Sander Coolen
378bbd7f6a [WIP] Retrieval of JSON Schema URIs. Resolving of relative URIs is not working. 2012-05-17 16:25:41 +02:00
Justin Rainbow
58964578d1 New Format constraint added
This constraint satisfies the "format" requirement

 * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
2012-05-13 22:15:26 -07:00
Justin Rainbow
607e055f7d Moved all tests into Constraints dir
Organizing the tests to start adding more features.
2012-05-13 12:19:21 -07:00
Justin Rainbow
2003956d7f Adding header license text for all files 2012-05-13 12:05:34 -07:00
Justin Rainbow
bf6f7b10a3 Removing the Symfony ClassLoader in favor of Composer - closes #9 2012-05-07 11:09:17 -07:00
Justin Rainbow
075e2e0eab doc / syntax tweaks 2012-05-06 11:48:11 -07:00
dantleech
58adfda3c8 Added support for "patternProperties" attribute
- As defined in 5.3 in JSON Schema Internet Draft
- This property is not mentioned in the self-describing json-schema
  schema - so not sure what other constraints to implement with it
  - Notably the "additionalProperties" attribute is NOT taken into
    consideration.
2012-05-04 10:23:02 +01:00
Morf
4f04966e5b Extended "Required Property" test 2012-01-16 16:48:34 -07:00
digitalkaoz
b395922ae0 cleanup, refactoring, splitted validators, tweaks 2012-01-02 21:28:58 +01:00
Igor Wiedler
341e7bccb5 replace "optional" attribute with "required" (optional is deprecated since draft 03) 2011-10-01 21:35:12 +02:00
Igor Wiedler
3098d25d30 make tests passing again 2011-09-30 19:19:30 +02:00
Igor Wiedler
cb88336e56 reorganize tests 2011-09-30 19:09:42 +02:00
Igor Wiedler
8fccda0bee rm selenium test cases 2011-09-30 19:04:45 +02:00
Justin Rainbow
5fe02248a7 Moving selenium tests and adding readme 2011-03-15 18:16:44 -07:00
Justin Rainbow
bfbba5a5f1 Updates to bootstrap - removing test includes from main bootstrap file 2011-03-15 18:14:01 -07:00
Justin Rainbow
3fba364890 Organizing files 2011-03-15 18:10:32 -07:00