php-json-schema
php-json-schema copied to clipboard
Added alternate way to instantiate validator
The current code requires you to pass a file path when constructing the Validator; however, sometimes you don't have the schema in a file (e.g. it's in a database). This offers a second way to instantiate it, by passing in the raw JSON schema, and specifying it as "json" instead of a file location.
Hi Harold, not sure if this is of any use, but it's all yours if you want it. :) I updated the Usage section of the README to show an example of how it works: https://github.com/benkeen/php-json-schema
I opened #15 before I saw this, so :thumbsup:
+1 to a good feature.
Anyone looking after this repo, merging pull requests?
Doesn't seem to be
@hasbridge Can you assign another admin if you're not able to look into these? So we can continue to help this library evolve? :)