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"
}
Schemastore has a
versionsfield that lists the older versions of a schema. As you can see from the example below theurlfield points to the latest/default schema whileversionslists 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
apiVersionorschemaVersionto match the schema version.