Skip to content

Added alternate way to instantiate validator#11

Open
benkeen wants to merge 1 commit into
hasbridge:masterfrom
benkeen:master
Open

Added alternate way to instantiate validator#11
benkeen wants to merge 1 commit into
hasbridge:masterfrom
benkeen:master

Conversation

@benkeen

@benkeen benkeen commented Jan 15, 2015

Copy link
Copy Markdown

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

benkeen commented Jan 15, 2015

Copy link
Copy Markdown
Author

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

pettazz commented Jun 17, 2015

Copy link
Copy Markdown

I opened #15 before I saw this, so 👍

@agwidarsito

Copy link
Copy Markdown

+1 to a good feature.

@agwidarsito

Copy link
Copy Markdown

Anyone looking after this repo, merging pull requests?

@pettazz

pettazz commented Oct 14, 2015

Copy link
Copy Markdown

Doesn't seem to be

@agwidarsito

Copy link
Copy Markdown

@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.

3 participants