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

handle json reference in json schema #20351

Open
yuhao-su opened this issue Jan 31, 2025 · 0 comments
Open

handle json reference in json schema #20351

yuhao-su opened this issue Jan 31, 2025 · 0 comments
Assignees
Milestone

Comments

@yuhao-su
Copy link
Contributor

yuhao-su commented Jan 31, 2025

It's a common practice in JSON schema that a field refers to content in a definition to define its properties.

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-00#rfc.section.8.2.3

https://json-schema.org/understanding-json-schema/structuring#dollarref

{
    "name": "example",
    "address": { "$ref": "#/definitions/address" },
    "definitions": {
        "address": {
            "city": "Austin",
            "state": "TX"
        }
    }
} 
@yuhao-su yuhao-su self-assigned this Jan 31, 2025
@github-actions github-actions bot added this to the release-2.3 milestone Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant