Skip to content

Commit

Permalink
renaming + adding to components
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed Jun 26, 2023
1 parent bfa04f3 commit 447397b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 12 deletions.
24 changes: 22 additions & 2 deletions definitions/3.0.0/messageObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@
"type": "string"
},
"payload": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
]
},
"correlationId": {
"oneOf": [
Expand Down Expand Up @@ -114,7 +124,17 @@
"type": "object"
},
"payload": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@
}
],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json"
"$id": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
14 changes: 12 additions & 2 deletions definitions/3.0.0/schemas.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
{
"description": "An object representing multiple schemas.",
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
]
},
"description": "JSON objects describing schemas the API uses.",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/schemas.json"
}
34 changes: 27 additions & 7 deletions schemas/3.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@
"type": "string"
},
"payload": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
},
"correlationId": {
"oneOf": [
Expand Down Expand Up @@ -2167,7 +2167,17 @@
"type": "object"
},
"payload": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
]
}
}
}
Expand Down Expand Up @@ -2209,8 +2219,8 @@
}
}
},
"http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json": {
"$id": "http://asyncapi.com/definitions/3.0.0/messagePayloadObject.json",
"http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json": {
"$id": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json",
"type": "object",
"additionalProperties": false,
"patternProperties": {
Expand Down Expand Up @@ -6184,11 +6194,21 @@
},
"http://asyncapi.com/definitions/3.0.0/schemas.json": {
"$id": "http://asyncapi.com/definitions/3.0.0/schemas.json",
"description": "An object representing multiple schemas.",
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
"description": "JSON objects describing schemas the API uses."
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
}
]
}
}
},
"description": "!!Auto generated!! \n Do not manually edit. "
Expand Down

0 comments on commit 447397b

Please sign in to comment.