Skip to content

Commit

Permalink
fix: AsyncAPI v3 shows warning in Studio and IntelliJ plugin when ref…
Browse files Browse the repository at this point in the history
…erencing a json schema

New multiFormatSchema validation rules

#494
asyncapi/jasyncapi-idea-plugin#49
  • Loading branch information
Pakisan committed Mar 19, 2024
1 parent 62c5193 commit 297e778
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions definitions/3.0.0/multiFormatSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
]
},
"schema": {
"not": {"required": ["$ref"]},
"$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json"
}
}
Expand Down Expand Up @@ -164,6 +165,7 @@
]
},
"schema": {
"not": {"required": ["$ref"]},
"$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json"
}
}
Expand Down
10 changes: 10 additions & 0 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -2839,6 +2839,11 @@
]
},
"schema": {
"not": {
"required": [
"$ref"
]
},
"$ref": "#/definitions/openapiSchema_3_0"
}
}
Expand Down Expand Up @@ -2879,6 +2884,11 @@
]
},
"schema": {
"not": {
"required": [
"$ref"
]
},
"$ref": "#/definitions/avroSchema_v1"
}
}
Expand Down
10 changes: 10 additions & 0 deletions schemas/3.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,11 @@
]
},
"schema": {
"not": {
"required": [
"$ref"
]
},
"$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json"
}
}
Expand Down Expand Up @@ -2930,6 +2935,11 @@
]
},
"schema": {
"not": {
"required": [
"$ref"
]
},
"$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json"
}
}
Expand Down

0 comments on commit 297e778

Please sign in to comment.