Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added alternate way to instantiate validator #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benkeen
Copy link

@benkeen benkeen commented Jan 15, 2015

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.

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
Copy link
Author

benkeen commented Jan 15, 2015

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

@pettazz
Copy link

pettazz commented Jun 17, 2015

I opened #15 before I saw this, so 👍

@agwidarsito
Copy link

+1 to a good feature.

@agwidarsito
Copy link

Anyone looking after this repo, merging pull requests?

@pettazz
Copy link

pettazz commented Oct 14, 2015

Doesn't seem to be

@agwidarsito
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants