-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
[JSON Schema Store] IDEs cannot determine the version of the JSON Schema to use #236
Comments
I found a small rock on the path. In order to support several versions, we need to provide a file like this one. {
"$id": "http://asyncapi.com/schema-store/all.json",
"$schema": "http://json-schema.org/draft-07/schema",
"title": "JSON Schema documents for all AsyncAPI spec versions",
"description": "All AsyncAPI JSON Schema documents listed in one file. Needed for serving all documents through schemastore.org",
"type": "object",
"oneOf": [
{
"allOf": [
{
"properties": {
"asyncapi": {
"const": "1.0.0"
}
}
},
{
"$ref": "http://asyncapi.com/schema-store/1.0.0.json"
}
]
}, The real problem behind that is that the It is not a big issue as Schema-Store plugin is being used for development, but still a bit inconsistent. Posible solutions1. Just deal with it. To have one
|
Nevermind, this is now considered as fixed since the PR on Schema Store has been merged. We can confirm it works because since the PR got merged, schemas for other AsyncAPI versions started to be downloaded: cc @derberg |
Describe the bug
IDEs, like VSCode, cannot determine the version of the JSON Schema file to use based on the AsyncAPI version in use.
How to Reproduce
2.4.0
to2.3.0
.AsyncAPI (2.4.0.json)
(as in the screenshot above).Expected behavior
IDEs should pick up the proper JSON Schema file based on the version selected on the AsyncAPI file.
The solution can be found in SchemaStore/schemastore#2229 (comment)
The text was updated successfully, but these errors were encountered: