json-reference
json-reference copied to clipboard
A library for working with JSON References.
Things to include: - library version - php version - OS (windows has unique problems) - example schema if possible - example data if possible
Now that we support both YAML and JSON decoders it would be great to be able to choose which one to use based on the content-type, file extension, etc. Since...
This is copied from the original issue at [https://github.com/thephpleague/json-guard/issues/60](https://github.com/thephpleague/json-guard/issues/60). I got this idea from [here](https://github.com/BigstickCarpet/json-schema-ref-parser/blob/master/docs/ref-parser.md#bundleschema-options-callback). The dereferencer will resolve all the references, but replace them with inline references to `#/definitions/schemas`...
The reference pretty much acts like the object it proxies, except for these cases: - `get_object_vars` - `property_exists` Because of those functions, I have to do this in json-guard: ```...