-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support for named anchors ($ref to a named $id) #220
Labels
Comments
KurtPreston
changed the title
Support for named anchors
Support for named anchors ($ref to a named $id)
Feb 21, 2019
Issue seems caused by APIDevTools/json-schema-ref-parser#97 |
bcherny
added
enhancement
external
This is an issue with a library that we depend on
labels
Jun 15, 2019
What is the status of this issue? Is there support for named anchors like example in question? |
duplicate of #132? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The latest spec allows support for named anchors:
https://json-schema.org/understanding-json-schema/structuring.html#using-id-with-ref
For example, named anchors would allow the following to compile:
Currently, trying to run json-schema-to-typescript against this results in the error:
Named anchors could be incredibly useful, in cases where one file references another self-referential schema. Is there any way I can get this functionality working with the current version? If not, are there any plans to support this feature in the future?
The text was updated successfully, but these errors were encountered: