Skip to content
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

Add support for $anchor #222

Closed
lordpixel23 opened this issue Mar 13, 2021 · 1 comment
Closed

Add support for $anchor #222

lordpixel23 opened this issue Mar 13, 2021 · 1 comment

Comments

@lordpixel23
Copy link

JSON Schema now includes a mechanism to simplify references as described in Section 9.2 of 2020-12 draft.

https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.9.2

Basically defining named anchors and referring to them rather than using JSON pointer.

Currently this does not work, returning (in Swagger CLI at least) printing
Invalid $ref pointer "fn". Pointers must begin with "#/"

@philsturgeon
Copy link
Member

Thanks for the heads up. This is all covered in #145 and will be the basis of an already started rewrite!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants