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

Rollback AnySchema and AvroSchema

asyncapi#494
asyncapi/jasyncapi-idea-plugin#49
  • Loading branch information
Pakisan committed Apr 2, 2024
1 parent d34130d commit a9a7d47
Showing 1 changed file with 19 additions and 43 deletions.
62 changes: 19 additions & 43 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -2686,35 +2686,18 @@
]
},
"anySchema": {
"type": "object",
"description": "An object representing either a Reference, a Schema or a Multi Format Schema",
"oneOf": [
{
"description": "Because of $ref collision in Reference and AsyncAPI Schema(includes $ref from Json Schema)",
"not": {
"required": [
"schemaFormat",
"schema"
]
},
"$ref": "#/definitions/schema"
},
{
"type": "object",
"required": [
"schemaFormat",
"schema"
],
"not": {
"required": [
"$ref"
]
},
"minProperties": 2,
"maxProperties": 2,
"$ref": "#/definitions/multiFormatSchema"
}
]
"if": {
"required": [
"schema"
]
},
"then": {
"$ref": "#/definitions/multiFormatSchema"
},
"else": {
"$ref": "#/definitions/schema"
},
"description": "An object representing either a schema or a multiFormatSchema based on the existence of the 'schema' property. If the property 'schema' is present, use the multi-format schema. Use the default AsyncAPI Schema otherwise."
},
"multiFormatSchema": {
"description": "The Multi Format Schema Object represents a schema definition. It differs from the Schema Object in that it supports multiple schema formats or languages (e.g., JSON Schema, Avro, etc.).",
Expand Down Expand Up @@ -3269,8 +3252,7 @@
},
"required": [
"type"
],
"additionalProperties": false
]
},
"customTypeReference": {
"title": "Custom Type",
Expand Down Expand Up @@ -3322,8 +3304,7 @@
"required": [
"name",
"type"
],
"additionalProperties": false
]
},
"avroRecord": {
"title": "Record",
Expand Down Expand Up @@ -3360,8 +3341,7 @@
"type",
"name",
"fields"
],
"additionalProperties": false
]
},
"avroEnum": {
"title": "Enum",
Expand Down Expand Up @@ -3398,8 +3378,7 @@
"type",
"name",
"symbols"
],
"additionalProperties": false
]
},
"avroArray": {
"title": "Array",
Expand Down Expand Up @@ -3432,8 +3411,7 @@
"required": [
"type",
"items"
],
"additionalProperties": false
]
},
"avroMap": {
"title": "Map",
Expand Down Expand Up @@ -3466,8 +3444,7 @@
"required": [
"type",
"values"
],
"additionalProperties": false
]
},
"avroFixed": {
"title": "Fixed",
Expand Down Expand Up @@ -3501,8 +3478,7 @@
"type",
"name",
"size"
],
"additionalProperties": false
]
},
"name": {
"type": "string",
Expand Down

0 comments on commit a9a7d47

Please sign in to comment.