Skip to content

Examples are missing in JSON schema #658

@guydavenport

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

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