You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, trying to run json-schema-to-typescript against this results in the error:
Error: Refs should have been resolved by the resolver! { '$ref': '#myName' }
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:
KurtPreston
changed the title
Support for named anchors
Support for named anchors ($ref to a named $id)
Feb 21, 2019
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: