-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Define multiple namespace and prefixes for XML requests #1456
Comments
You are correct that multiple xml namespaces are not directly supported by the xml annotations in OpenAPI 3.0.x
Your workaround sounds fine, as long as you are not reusing the schema definition for another content-type (such as json), in that case the additional properties would also be considered valid, whereas you might not want that. |
We are considering supporting alternate schemas in v3.1 which would enable this scenario. See #1443 |
Hi everyone,
I try to model a request which requires xml as request body and multiple namespaces in one xml element:
example:
I'm currently only able to define just one namespace:
I think a possible workaround is to declare the other namespace attributes as normal elements and use "attribute: true".
I'm sorry if I misunderstand the usage of namespaces or the openapi xml element.
Is there a proper way to define multiple xml namespaces for one attribute in openapi 3.0.0?
The text was updated successfully, but these errors were encountered: