Frank Göldner
0398e45d9e
Throw exception if max depth exceeded
2015-07-14 10:27:20 +02:00
David Porter
66c1330d0f
Merge pull request #154 from samkeen/fix_empty_property_keyname_when_property_is_missing
...
For missing properties, the key for that error in set to ""
2015-07-13 00:06:01 -05:00
Andreas Möller
f5e34e42f8
Enhancement: Simplify test bootstrapping
2015-07-12 22:52:45 -04:00
Andreas Möller
45bfb2265d
Fix: Autoload with Composer only
2015-07-12 22:51:12 -04:00
samkeen
a71086d68b
For missing properties, the key for that error in set to ""
...
- Expected bahavior is that the key would be set to the poperty name.
- added tests to ensure the "property" is populated regardless
of required attribute is completely missing or has empty value.
2015-06-16 15:45:20 -07:00
Maks3w
34f9ae1d8b
Add constraint factory
...
This factory can be injected and allow extend built-in constraint types with custom ones.
2015-06-14 22:32:02 +02:00
David Porter
7f55a9727e
Merge pull request #153 from alecsammon/missingFileWarning
...
Fix warning on file_get_contents
2015-06-14 14:57:49 -05:00
David Porter
c76301b61e
Merge pull request #152 from alecsammon/refArrayJson
...
Fetching JSON Array from URI
2015-06-12 22:59:41 -05:00
Alec Sammon
15ce6bfead
Fix warning on file_get_contents
...
Fixes #153
2015-06-11 06:49:49 +01:00
Alec Sammon
f092588502
Fix for retrieving a JSON array from a uri
...
Fixes #152
2015-06-11 06:21:13 +01:00
David Porter
1ffdea0e23
Merge pull request #125 from ArDeveloppement/master
...
Do not throw errors when using unknown/custom format
2015-06-10 20:47:03 -05:00
Hugo Hamon
65c4134455
[Constraints] make error messages better.
2015-05-08 07:00:09 -04:00
Laurent Wiesel
c112d67f23
Do not throw errors when using unknown format
2015-04-07 10:22:10 +02:00
Martin Aarhof
dc310ac54c
proposal on new constraints name
2015-03-19 15:09:03 +01:00
Justin Rainbow
87b54b460f
Merge pull request #106 from openfryer/uriretriever-uriresolverexception
...
Fix UriRetriever::combineRelativePathWithBasePath() does not qualify UriResolverException
2014-08-24 19:48:14 -07:00
Justin Rainbow
d98033f1c5
Merge pull request #104 from hakre/patch-1
...
Constraint::check() uses wrong indefinite article in error message to express the type constraint
2014-08-24 19:37:48 -07:00
Justin Rainbow
c587f9b13f
Merge pull request #99 from xanagi/multibyte_strlen
...
Use mb_strlen instead of strlen when mbstring extension is available.
2014-08-24 19:33:27 -07:00
Justin Rainbow
04fed3677d
Merge pull request #98 from alexmmm/fix-constraint-errors-getter
...
Fix constraint errors getter
2014-08-24 19:32:30 -07:00
Justin Rainbow
99fa58a849
Merge pull request #100 from alexmmm/fix-basic-types-test
...
minor fix of BasicTypeTests
2014-08-24 19:32:01 -07:00
Leif Meyer
150cbaee08
Fix UriRetriever::combineRelativePathWithBasePath() does not qualify UriResolverException
...
Added full qualification to UriResolverException in
UriRetriever::combineRelativePathWithBasePath().
Added a test to verify that a UriResolverException is thrown when a
relative path contains more level-ups than the base path segments.
2014-06-12 17:06:34 -06:00
hakre
3bbbc37b79
Add test-case for Type error messages
2014-06-09 15:37:48 +02:00
alexmmm
31401668ff
add unit tests to validate issue #102
2014-05-05 11:43:22 +02:00
alexmmm
cd0d3a9e26
split composite invalid case into independent testcases
...
- the composite case proved that one type check failed not all of them
2014-05-02 17:45:13 +02:00
Tomonori Kusanagi
3996ce742b
Use mb_strlen instead of stlen when mbstring extension is available.
2014-05-02 01:45:31 +09:00
alexmmm
0c39a5b92d
add unit tests to validate issue #76
2014-05-01 17:33:33 +02:00
alexmmm
e994ca8a1f
add unit tests to validate issue #97
2014-05-01 15:40:03 +02:00
Justin Rainbow
cb428b3bbe
Merge pull request #95 from gwagner/master
...
Fix a case of 2 invalid oneOf were considered valid
2014-03-03 16:27:04 -07:00
Geoffrey Wagner
57f366bc1e
Fix a case of 2 invalid oneOf were considered valid
...
* When using oneOf, one of the schemas should be considered valid for things to be successful. The old logic would take a schema (that could have had an error) and evaluate against a clean object that could have also contained an error (meaning the logic would assume no error existed)
2014-02-25 17:11:20 -06:00
Jordi Boggiano
5ec2d4255a
Add support for additionalProperties set to true
2014-02-19 17:08:23 +01:00
Justin Rainbow
ad8b959e59
Merge pull request #68 from webdevel/travis-ci-dev
...
Add Sphinx Doc and PHPDocumentor to Travis-CI
2013-12-08 13:17:57 -08:00
dazz
959323edd4
Validation with oneOf, allOf and anyOf only if property is set
...
Added check if property is defined before values are checked with
ofProperty validators
2013-12-08 02:13:59 +01:00
Henning Glatter-Götz
6d8dbed8e1
Update test case to account for 3 additional parameters
...
In JsonSchema\Tests\RefResolverTest::testResolve the
JsonSchema\RefResolver::resolveArrayOfSchemas method is now called 7
instead of 4 times due to the addition of 'oneOf', 'allOf' and 'anyOf'.
Change expected count from 4 to 7 in resolveProvider.
2013-10-10 22:43:47 +02:00
Steven Garcia
b2165e188e
Merge with upstream master
2013-09-11 07:59:41 -07:00
Steven Garcia
4138793885
Remove tabs/whitespace. Add unit test coverage. Add code comments.
2013-09-07 15:06:43 -07:00
Steven Garcia
f7a397eeef
Remove tabs/whitespace. Add unit test coverage. Add code comments.
2013-09-07 15:00:17 -07:00
Christian Weiske
48bd037d70
Properly resolve relative URIs with fragments: "base.json#/definitions/foo"
2013-08-29 10:57:25 +02:00
Steven Garcia
8a0b2e1d5c
Remove tabs/whitespace. Add unit test coverage. Add code comments.
2013-08-25 01:10:21 -07:00
Justin Rainbow
c67157abda
Merge pull request #54 from alexmmm/fix-uri-retriever-test
...
Fix UriRetriever test
2013-08-16 09:42:26 -07:00
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