php-json-schema icon indicating copy to clipboard operation
php-json-schema copied to clipboard

Added alternate way to instantiate validator

Open benkeen opened this issue 9 years ago • 6 comments

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.

benkeen avatar Jan 15 '15 03:01 benkeen

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

benkeen avatar Jan 15 '15 03:01 benkeen

I opened #15 before I saw this, so :thumbsup:

pettazz avatar Jun 17 '15 21:06 pettazz

+1 to a good feature.

agwidarsito avatar Oct 02 '15 00:10 agwidarsito

Anyone looking after this repo, merging pull requests?

agwidarsito avatar Oct 09 '15 00:10 agwidarsito

Doesn't seem to be

pettazz avatar Oct 14 '15 21:10 pettazz

@hasbridge Can you assign another admin if you're not able to look into these? So we can continue to help this library evolve? :)

agwidarsito avatar Oct 16 '15 02:10 agwidarsito