Skip to content

Support versions from schemastore #639

@gorkem

Description

@gorkem

Schemastore has a versions field that lists the older versions of a schema. As you can see from the example below the url field points to the latest/default schema while versions lists all versions available. We should introduce a code lens to switch between the versions of a schema.

Moreover, we can use values of fields such as apiVersion or schemaVersion to match the schema version.

     "name": "Airlock Microgateway",
     "description": "Airlock Microgateway configuration schema",
      "url": "https://json.schemastore.org/airlock-microgateway-3.1.json",
      "fileMatch": [
        "microgateway-config.yaml",
        "microgateway-config.yml",
        "airlock-microgateway-config.yaml",
        "airlock-microgateway-config.yml"
      ],
      "versions": {
        "3.0": "https://json.schemastore.org/airlock-microgateway-3.0.json",
        "3.1": "https://json.schemastore.org/airlock-microgateway-3.1.json"
      }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions