Skip to content
Discussion options

You must be logged in to vote

The workaround is to declare the other prefix on the nested node (element or attribute) that needs it. Pulling an XML namespace declaration up to an enclosing XML element or the XML document root node is just a convenience/shorthand. From an XML perspective these are equivalent:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:other="http:example..">
  <other:Elem>
    …
  </other:Elem>
</soap:Envelope>

and

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <other:Elem xmlns:other="http:example..">
    …
  </other:Elem>
</soap:Envelope>

With OpenAPI 3.2 each element and attribute can be represented as a node with the corresponding nodeType

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nickkpiccoli
Comment options

@ralfhandl
Comment options

Answer selected by nickkpiccoli
@handrews
Comment options

@nickkpiccoli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
xml media and encoding Issues regarding media type support and how to encode data (outside of query/path params)
3 participants