424 Commits

Author SHA1 Message Date
Tristan Darricau
2128f9de8b Master is not 2.0.x anymore but 3.0.x (#306) 3.0.1 2016-08-26 07:45:49 -05:00
Dario Nuevo
0f87b314cd add instance cache, remove unnecessary execution paths (#288)
fix wrong merge
2016-08-19 07:57:35 -05:00
Patrick Safarov
1296583112 New way of handling references (#277) 3.0.0 2016-08-15 11:39:11 -05:00
Chris Wilkinson
ef13b9b94c Cache the results of RefResolver::resolve() (#290)
* Cache the results of RefResolver::resolve()

* Add test
2016-08-11 07:35:14 -05:00
David Porter
58b6e07fc0 Merge pull request #276 from steffkes/path-json-pointer
use JsonPointer for path handling
2016-08-11 07:34:30 -05:00
David Porter
38503c48c6 Merge pull request #294 from FlorianSW/issue/293
Change error reporting for invalid types with multiple valid types
2016-08-11 07:32:42 -05:00
steffkes
7851a44591 proper typo - checks format of _an_ element 2016-08-02 22:36:40 +02:00
Florian
53a8486e62 Change error reporting for invalid types with multiple valid types
Currently, if a property has multiple valid types, an error message
when a value doesn't conform to the schema, would mention only the
last valid type, without mentioning the other valid types.

This commit changes, how the TypeConstraint works internally. It
does a little bit of refactoring (removing also the "Refacter this"
ToDo) and now mentions any valid types on a failure.

Fixes #293
2016-08-02 18:19:59 +02:00
steffkes
8c32e3e54d use JsonPointer for path handling 2016-08-02 15:02:29 +02:00
David Porter
ddabcf8025 Merge pull request #286 from boekkooi-fresh/array-as-object
Support json_decode assoc
2016-08-01 19:40:51 -05:00
David Porter
c269bdaa37 Merge pull request #278 from abacaphiliac/exception-interface
Exception interface
2016-07-25 18:45:42 -05:00
David Porter
6b56652c51 Merge pull request #287 from sinbonders/master
Updating to use more correct hostname regex. This fixes #129
2016-07-25 18:44:29 -05:00
David Porter
e9667c3c4f Merge pull request #292 from remicollet/issue-291
Fix #291 failed tests with lestest PHP
2016-07-25 18:42:06 -05:00
Remi Collet
14c9472c2b Fix #291 failed tests with lestest PHP
Since 5.6.24, 7.0.9, 7.1.0beta1, negative timestamps are valid.
2016-07-21 18:37:10 +02:00
Ben Saunders
321f6af994 Updating to use more correct hostname regex. This fixes #129 2016-07-07 16:19:47 -07:00
Warnar Boekkooi
dd5717a760 Tweaked tests for assoc array tests 2016-07-04 11:47:19 +02:00
Warnar Boekkooi
9d8a082093 Implemented TypeCheck to allow for a common interface on how to check arrays and/or objects 2016-07-04 11:47:19 +02:00
Warnar Boekkooi
d750e17d8f Added Tests for array assoc json decode 2016-07-04 11:47:19 +02:00
Warnar Boekkooi
ceaece4fa5 Minor code style changes 2016-07-04 11:47:19 +02:00
Tim Younger
1a5f3396ef add tests to validate existing exception hierarchy, in preparation for adjustment. add \RuntimeException wrapper. update all extensions of \RuntimeException to extend the wrapper. spl-exception wrappers now implement a common exception interface for this package. this allows consumers to handle all custom exception types thrown by catching the common interface rather than by catching each specific extension or their spl parents. 2016-06-28 13:10:14 -07:00
David Porter
8490e828c1 Merge pull request #234 from ehimen/fix-zero-secfrac
Fix: allow explicit 0 secfracs in datetime format
2016-06-28 15:00:59 -05:00
David Porter
d414acd3a4 Merge pull request #282 from bustbr/master
fix instancing wrong type, breaks inheritance
2016-06-26 11:17:37 -05:00
David Porter
c627c376ab Merge pull request #283 from steffkes/move-min-max-properties-test
move MinMaxPropertiesTest to proper location
2016-06-22 14:34:51 -05:00
steffkes
7f9d9038ec move MinMaxPropertiesTest to proper location 2016-06-22 21:12:09 +02:00
Tim B
e2d31ed665 fix instancing wrong type, breaks inheritance
when inheriting from TypeConstraint to change the behaviour of `validateType` (e.g. to add support for custom types), this would switch from the extended class to the base class if type is an array of types
2016-06-22 18:02:57 +02:00
Andy Cook
ffc856dbbe Fix: allow explicit 0 secfracs in datetime format 2016-06-09 13:18:46 +01:00
David Porter
6b2a33e6a7 Merge pull request #273 from dmitry-varennikov-eventbase/uri-retriever-error-handler-2
Throw `ResourceNotFoundException` outside of re-defined error-handler
2.0.5
2016-06-02 05:59:52 -05:00
David Porter
e2bea02548 Merge pull request #275 from dishuostec/patch-1
Fix constraint of error
2016-06-02 05:59:07 -05:00
dishuostec
3ba138c6a1 Wrong constraint of error 2016-06-02 13:55:17 +08:00
David Porter
5af8a3174d Merge pull request #272 from bighappyface/no-composer-version
chore(composer): remove version in favor of VCS tags
2016-05-31 09:08:01 -05:00
Dmitry Varennikov
534f66da19 Throw ResourceNotFoundException outside of re-defined error-handler 2016-05-25 11:33:05 -07:00
bighappyface
615257d642 chore(composer): remove version in favor of VCS tags 2016-05-25 12:26:54 -05:00
bighappyface
5c133a3e33 chore(release): 2.0.4 2.0.4 2016-05-24 12:38:18 -05:00
David Porter
449bb4dbae Merge pull request #271 from justinrainbow/revert-262-uri-retriever-error-handler
Revert "Do not override error handler"
2016-05-23 16:59:50 -05:00
David Porter
5292a93418 Revert "Do not override error handler" 2016-05-23 16:50:55 -05:00
David Porter
6dad7bf4a7 Merge pull request #265 from mirfilip/feature/upgrade-json-schema-test-sute-to-1.2.0
Bump json-schema/JSON-Schema-Test-Suite to 1.2.0 + some tests improvements
2016-05-11 16:39:50 -05:00
bighappyface
c21534c635 chore(release): 2.0.3 2.0.3 2016-05-10 15:38:51 -05:00
David Porter
6f4c8c9ced Merge pull request #262 from dmitry-varennikov-eventbase/uri-retriever-error-handler
Do not override error handler
2016-05-10 15:37:51 -05:00
Dmitry Varennikov
780dd6f45f Deleted unused stream context and check if a local file exists 2016-05-10 13:27:43 -07:00
Mirosław Filip
346b3218dd Bump json-schema/JSON-Schema-Test-Suite to 1.2.0. Add data set
description for failing tests. Flatten directory structure

Use "test.json / suite description / test case description" notation in data provider to allow a readable test output

Skip Draft3Test / Draft4Test tests which are not passing

Add some comment to skipped tests
2016-05-09 23:42:42 +02:00
David Porter
a2be633611 Merge pull request #264 from mirfilip/feature/upgrade-json-schema-test-suite-to-1.1.2
Bump json-schema/JSON-Schema-Test-Suite to 1.1.2
2016-05-09 16:29:03 -05:00
Mirosław Filip
a4d0b4c010 Bump json-schema/JSON-Schema-Test-Suite to 1.1.2 2016-05-09 23:19:40 +02:00
David Porter
b922e286ad Merge pull request #256 from Big-Shark/patch-1
Removed php7 of allow_failures
2016-05-09 11:23:55 -05:00
bighappyface
00f325773a chore(release): 2.0.2 2.0.2 2016-05-09 11:22:40 -05:00
David Porter
dd73ab2724 Merge pull request #261 from schrobak/bugfix/conditional-min-max-properties-validation
Fixes min/max properties validation for non objects
2016-05-09 11:21:18 -05:00
Sławomir Chrobak
84decc9a66 Skips min/max properties validation for non objects 2016-04-29 17:04:39 +02:00
bighappyface
9ef71fdf8a chore(release): 2.0.1 2.0.1 2016-04-28 09:34:47 -05:00
David Porter
870eaadd27 Merge pull request #259 from bighappyface/application-json
feat(UriRetriever): application/json support
2016-04-28 09:32:01 -05:00
bighappyface
0e7add4652 feat(UriRetriever): application/json support 2016-04-28 08:29:49 -05:00
Maxim
fb4aaa2426 Removed php7 of allow_failures 2016-04-27 11:38:10 +07:00