json-reference
json-reference copied to clipboard
Schema bundling
This is copied from the original issue at https://github.com/thephpleague/json-guard/issues/60.
I got this idea from here.
The dereferencer will resolve all the references, but replace them with inline references to #/definitions/schemas instead of replacing them with reference objects.
This will be really handy for documentation, swagger, and sharing schemas.