Validate JSON objects against schemas hosted at a URL
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?
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.
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?