You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
tim-ebner
changed the title
How to define multiple namespace and prefixes for XML request
Define multiple namespace and prefixes for XML request
Jan 12, 2018
tim-ebner
changed the title
Define multiple namespace and prefixes for XML request
Define multiple namespace and prefixes for XML requests
Jan 12, 2018
You are correct that multiple xml namespaces are not directly supported by the xml annotations in OpenAPI 3.0.x
I think a possible workaround is to declare the other namespace attributes as normal elements and use "attribute: true".
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.
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: