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 nested schemas #17

Open
audse opened this issue Feb 21, 2024 · 0 comments
Open

Add nested schemas #17

audse opened this issue Feb 21, 2024 · 0 comments
Labels
feature New large feature
Milestone

Comments

@audse
Copy link
Collaborator

audse commented Feb 21, 2024

Here's an example of what I'd like to support:

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "definitions": {
        "Resource": {
            "type": "object",
            "properties": {
                "resource_path": {
                    "type": "string"
                }
            }
        }
    },
    "type": "object",
    "properties": {
        "some_resource": { "$ref": "#/definitions/Resource" },
    }
}

This schema will cause the some_resource property to load the resource at Resource.resource_path.

@audse audse added the feature New large feature label Feb 21, 2024
@audse audse added this to the 1.0 milestone Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New large feature
Projects
None yet
Development

No branches or pull requests

1 participant