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

Update README.md #309

Closed
wants to merge 1 commit into from
Closed

Update README.md #309

wants to merge 1 commit into from

Conversation

stamster
Copy link

Changed composer install method (it will target latest stable branch), since 2.0 is broken
added few comments to clarify usage example

Changed composer install method (it will target latest stable branch), since 2.0 is broken
added few comments to clarify usage example

// Validate
$validator = new JsonSchema\Validator;
$validator->check($data, (object)['$ref' => 'file://' . realpath('schema.json')]);
$validator->check($data, (object)['$ref' => 'file://' . realpath('schema.json')]); //either provide PHY schema (after json_decode) or just point out to the correct schema on the local filesystem
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHY - Physical. Might be misleading, sorry. The point was - either provide object after JSON decode, either provide a link to your schema on the filesystem.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with something more clear

@bighappyface
Copy link
Collaborator

Closing pending clarity... probably addressed in #320

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.

2 participants