Skip to content

Commit

Permalink
add schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jan 25, 2024
1 parent 287ed28 commit e541cb6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion definitions/3.0.0/messageBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"http": {
"properties": {
"bindingVersion": {
"enum": ["0.2.0"]
"enum": ["0.2.0", "0.3.0"]
}
},
"allOf": [
Expand Down Expand Up @@ -40,6 +40,19 @@
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.2.0/message.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.3.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.3.0/message.json"
}
}
]
},
Expand Down
15 changes: 14 additions & 1 deletion definitions/3.0.0/operationBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"http": {
"properties": {
"bindingVersion": {
"enum": ["0.2.0"]
"enum": ["0.2.0", "0.3.0"]
}
},
"allOf": [
Expand Down Expand Up @@ -40,6 +40,19 @@
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.2.0/operation.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.3.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.3.0/operation.json"
}
}
]
},
Expand Down

0 comments on commit e541cb6

Please sign in to comment.