Skip to content

Commit

Permalink
feat(multi format schema): support new media types
Browse files Browse the repository at this point in the history
- application/raml+yaml;version=1.0
- application/vnd.google.protobuf;version=2
- application/vnd.google.protobuf;version=3
- application/xml
  • Loading branch information
Pakisan committed Feb 27, 2025
1 parent 2da0459 commit bc2b592
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion definitions/3.0.0/multiFormatSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
"application/vnd.apache.avro+json;version=1.9.0",
"application/vnd.apache.avro+yaml;version=1.9.0",

"application/raml+yaml;version=1.0"
"application/raml+yaml;version=1.0",

"application/vnd.google.protobuf;version=2",
"application/vnd.google.protobuf;version=3",

"application/xml"
]
}
]
Expand Down Expand Up @@ -194,6 +199,37 @@
}
}
}
},
{
"if": {
"required": [
"schemaFormat"
],
"properties": {
"schemaFormat": {
"enum": [
"application/raml+yaml;version=1.0",
"application/vnd.google.protobuf;version=2",
"application/vnd.google.protobuf;version=3",
"application/xml"
]
}
}
},
"then": {
"properties": {
"schema": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"type": ["string", "object"]
}
]
}
}
}
}
]
},
Expand Down

0 comments on commit bc2b592

Please # to comment.