PHP 5.3 validation class

263 views
Skip to first unread message

hasb...@gmail.com

unread,
Dec 19, 2011, 11:56:56 AM12/19/11
to json-...@googlegroups.com
Hey guys, I've been working on a schema validator for PHP 5.3. It's not yet feature complete, but it does support all of the basic definitions and formats. I've yet to come up with an elegant way to implement dependencies or references, but I will add them soon. It is also unit tested with 100% code coverage. Let me know what you think: https://github.com/hasbridge/php-json-schema

Paul d'Aoust

unread,
Dec 31, 2011, 12:51:11 AM12/31/11
to JSON Schema
Good stuff! I haven't looked through it too deeply, but I thought I'd
implement patternProperties for ya. In the process, I discovered that
the validator didn't check additional properties against
additionalProperties if additionalProperties was a schema, so I added
that in as well. I didn't do any testing on it at all, so it'll
probably need to be fired up and tested and whatnot.

Paul

ig...@wiedler.ch

unread,
Feb 8, 2012, 5:01:46 AM2/8/12
to json-...@googlegroups.com
Looks nice! A few other guys have been working on porting Bruno Reis' old library to PHP 5.3 and refactoring it. We are using it mostly for composer [http://packagist.org], but it solves a general purpose problem.

https://github.com/justinrainbow/json-schema

If all of us could join forces, that would be awesome. If you're interested, come into #composer on irc.freenode.net, and we can discuss it.

Igor Wiedler

unread,
Feb 8, 2012, 10:27:07 AM2/8/12
to json-...@googlegroups.com
Sorry, make that #composer-dev on freenode.
Reply all
Reply to author
Forward
0 new messages