Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Validate JSON objects against schemas hosted at a URL #173

Open
grayside opened this issue Jun 21, 2016 · 2 comments
Open

Validate JSON objects against schemas hosted at a URL #173

grayside opened this issue Jun 21, 2016 · 2 comments

Comments

@grayside
Copy link

My application provides the schema I am using for validation. The JsonContext ultimately enforces that all schemas be a local file on disk, though otherwise file_get_contents() can retrieve the URL just fine.

What is the preferred way to pull a schema based on a URL? Is a new custom step needed?

@sanpii
Copy link
Member

sanpii commented Jun 21, 2016

What is the preferred way to pull a schema based on a URL?

If it’s possible, modify the existing step to allow remote schema.

@grayside
Copy link
Author

I looked into doing so, but I couldn't figure out how to inject the constructor arguments into my subclass of JsonContext. Is there a recommended means to override the step?

Or are you suggesting I PR a change to the existing step, or add an additional step for the URL use case?

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

No branches or pull requests

2 participants