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

Use $ref to definitions in oneOf for Parameter locations #3258

Merged
merged 1 commit into from
Feb 1, 2024

Commits on Feb 1, 2024

  1. Use $ref to definitions in oneOf for Parameter loc

    I'd like to use a JSON Merge Patch (RFC 7386) document to add
    keywords for the OAS compliance parser project.
    
    JSON Merge Patch does not handle arrays well, so moving these to
    their own definitions and having the "oneOf" directly in the
    "Parameter" definition (avoiding duplicate "description" fields
    on the same instance location) allows merge-patch to work where
    I need it.
    
    Otherwise, JSON Patch (RFC 6902) will be needed, which is less
    intuitive.
    
    The 3.1 schema already uses "$defs" here.
    handrews committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    136371f View commit details
    Browse the repository at this point in the history