Skip to content

Examples are missing in JSON schema #658

Description

@guydavenport

Take for example https://github.com/plantbreeding/BrAPI/blob/brapi-V2.1/Specification/BrAPI-Core/Studies/Schemas/StudyNewRequest.yaml

There are examples for many properties e.g.

documentationURL:
          description: A URL to the human readable documentation of an object
          format: uri
          type: string
          nullable: true
          example: https://wiki.brapi.org

However, this are not available in JSON schema. e.g.

https://github.com/plantbreeding/BrAPI/blob/brapi-V2.1/Specification/BrAPI-Schema/BrAPI-Core/Study.json

 "documentationURL": {
                    "description": "A URL to the human readable documentation of an object",
                    "format": "uri",
                    "type": [
                        "null",
                        "string"
                    ]
                }

Try to use co-pilot to copy examples from yaml to JSON schema

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions