380 Commits

Author SHA1 Message Date
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
David Porter
05ce776136 Merge pull request #252 from bburnichon/patch-1
Bump recommended version to ~2.0
2016-04-15 10:29:41 -05:00
Benoît Burnichon
d7e0f640ab Bump recommended version to ~2.0 2016-04-15 10:02:09 +02:00
bighappyface
f1f874d2c0 chore(composer): udpate dev-master 2.0.0 2016-04-14 11:26:27 -05:00
David Porter
50901a4881 Merge pull request #245 from jojo1981/feature/ref-resolver
#240 Fix RefResolver and make it compatible with draft-04
2016-04-14 11:24:45 -05:00
Joost Nijhuis
e265e9f66d Fix RefResolver and make it compatible with draft-04 #240 2016-04-13 18:05:27 +02:00
David Porter
61a95a151a Merge pull request #246 from bighappyface/mit
chore(LICENSE): switch to MIT
2016-03-30 16:06:40 -05:00
bighappyface
1fae264037 chore(LICENSE): switch to MIT 2016-03-25 09:12:24 -05:00
David Porter
94d8d29fc8 Merge pull request #238 from bburnichon/feature/rfc339-helper
add rfc3339 helper class
2016-03-19 21:14:26 -05:00
Benoît Burnichon
6474265bda Simplify FormatConstraint using helper class 2016-03-03 13:30:26 +01:00
Benoît Burnichon
b9ddba5760 Add Rfc339 utility class to create instances of DateTime 2016-03-03 13:24:40 +01:00
David Porter
5a49ebd966 Merge pull request #237 from tinyroy/master
Aligning EnumConstraint error output to use json_encode()
2016-02-29 15:23:18 -06:00
Royston Tong
dd80ff0585 Aligning error output to use json_encode() instead of print_r() when displaying objects or arrays in error message. 2016-02-27 18:57:30 +00:00
David Porter
37810e922e Merge pull request #174 from localheinz/feature/phpunit
Enhancement: Require more recent phpunit/phpunit
2016-02-17 09:37:01 -06:00
David Porter
81ca09b641 Merge pull request #232 from rtucek/fix-issue-215
Moving constraints min- and maxProperties to ObjectConstraint
2016-02-17 09:29:42 -06:00
Rudolf Tucek
c2a874562e Moving constraints min- and maxProperties to ObjectConstraint as requested from PR 224 and fixing issue 215. 2016-02-15 07:32:13 +01:00
David Porter
5bf2286721 Merge pull request #227 from localheinz/fix/xdebug
Fix: Generate coverage on one PHP version only
2016-02-08 08:31:57 -06:00
David Porter
b26cc826ef Merge pull request #231 from bighappyface/php-53-bc
fix(composer): reduce minimum php to 5.3.3
2016-02-05 18:24:59 -06:00
bighappyface
bf2af1ab31 fix(composer): reduce minimum php to 5.3.3 2016-02-05 17:12:42 -06:00
Andreas Möller
922bdd465c Enhancement: Require a more recent version of phpunit/phpunit 2016-02-02 19:55:06 +01:00
Andreas Möller
c4c862734c Fix: Generate coverage on one PHP version only 2016-02-02 19:45:48 +01:00
David Porter
f3380ebccd Merge pull request #223 from localheinz/fix/condition
Fix: Remove conditions never evaluating to true
2016-01-25 15:44:21 -06:00
Andreas Möller
04de5d1ec6 Fix: Remove conditions never evaluating to true 2016-01-25 20:47:19 +01:00
David Porter
cc84765fb7 Merge pull request #222 from bighappyface/travis-containers
feat(travis): pivot to container-based infrastructure
1.6.1
2016-01-25 09:43:01 -06:00
David Porter
d5b504b268 Merge pull request #221 from bighappyface/factory-constraint-assignment
feat(Factory): add setConstraintClass
2016-01-25 09:42:49 -06:00
bighappyface
b4e88bc016 feat(travis): pivot to container-based infrastructure 2016-01-24 12:44:15 -06:00
bighappyface
10bbd1fca3 feat(Factory): add setConstraintClass
Adds support for setting arbitrary constraint classes by constraint name to the constraint factory
2016-01-24 12:41:17 -06:00
David Porter
acb3e85831 Merge pull request #218 from bighappyface/remove-php-5-3-3
feat(composer): require PHP 5.3.29 (PHP 5.3.x EOL version) minimum
2016-01-18 14:23:47 -06:00
bighappyface
b47b52dca2 feat(composer): require PHP 5.3.29 (PHP 5.3.x EOL version) minimum 2016-01-18 14:14:13 -06:00
David Porter
3c1c60aa1b Merge pull request #217 from bburnichon/patch-1
fixup dev-master alias
2016-01-18 12:03:14 -06:00
Benoît Burnichon
a7958b412d fixup dev-master alias 2016-01-15 16:00:36 +01:00
David Porter
dc048c6a90 Merge pull request #213 from wpillar/fix-exclusive-min-max-strictness
Fix exclusive min/max strictness
2016-01-06 13:07:30 -06:00
Will Pillar
8644cbeb6b Fix exclusive min/max strictness 2016-01-06 17:43:07 +00:00
davi4797
752c13670e chore(travis): disable docs in PHP 5.6 build 2016-01-06 08:46:02 -06:00
David Porter
f9e27c3e20 Merge pull request #207 from johnnoel/master
Fix non-6 digit microsecond date time formats
1.6.0
2016-01-06 08:37:04 -06:00
David Porter
b2e6b9a208 Merge pull request #209 from Markard/master
RefResolver::$depth restoration after JsonDecodingException
2015-12-28 16:54:27 -05:00
Dmitry Yuzhakov
f1e51539cb Adjusted $depth restoration in RefResolver if JsonDecodingException was thrown. 2015-12-21 15:32:01 +02:00
David Porter
78eab478a8 Merge pull request #206 from jonathan-s/master
An email is a string, not much else.
2015-12-15 14:50:16 -06:00
John Noel
f3cb7ff9a7 Fix non-6 digit microsecond date time formats
RFC3339 allows for second fractions to be any length, however PHP's
date/time formatting ALWAYS prints them out as 6 digits. This means if a
date-time is passed with a < 6 digit second fractional, the
FormatConstraint::validateDateTime will fail as the formatted date will
contain 6 digits.

E.g. '2000-05-01T12:12:12.123Z' is passed as a date time and is valid.
However after parsing, format() will produce
'2000-05-01T12:12:12:12.123000Z'.

Fixes issue #145.
2015-12-15 19:54:59 +00:00
Jonathan Sundqvist
73ef463f5e An email is a string, not much else. 2015-12-15 19:16:01 +00:00
David Porter
f7918151a2 Merge pull request #204 from JustTSK/master
Fix path output for required properties
2015-12-14 15:16:05 -06:00
Taras ~TSK~ Anatsko
505e6f3e7f add path to required properties 2015-12-14 12:36:59 -08:00
David Porter
8abfcaae17 Merge pull request #202 from dicexq/master
Fix CollectionConstraint to allow uniqueItems to be false
2015-12-03 11:25:46 -06:00
David Porter
7c78776b29 Merge pull request #194 from ribeiropaulor/justinrainbow/master
bugfix: patternProperties raised errors when the pattern has slashes
2015-12-03 11:25:01 -06:00
Paulo Ribeiro
2ba8f95290 delimiter defaulted to a value before loop 2015-12-02 17:52:34 -02:00