-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
$ref at root level is not omitted #174
Comments
I have the same problem. How to use example:
|
Can you put the content in the root instead of defining it inside then hosting it with a $ref? This is known to work, and what you've got in this example isn't adding any benefit over it. Also what is components, thats commonly used in OpenAPI v3.x which is a whole other thing. Having siblings is not valid JSON Schema 07, it was added in JSON Schema 2019-09, which is being addressed in #145. Let's cover this there. |
Steps to reproduce
With a jsonSchema like:
the $ref is correctly resolved, but is kept a "$ref: "#" in the result.
Example
What is expected?
I expect that the $ref is omitted from the result:
Other info
The text was updated successfully, but these errors were encountered: