Forum Discussion
- HKosovaSmartBear Alumni (Retired)
Hi skmutyala,
OpenAPI Specification currently has no way to represent XML elements with attributes such as
<elem attr="value">Some text</elem>
Currently, attributes can only be defined for objects such as
<obj attr="value"> <elem>Some text</elem> </obj>
but not for simple <elem>text</elem> elements.
There's an open issue about this limitation in the OpenAPI Specification repository:
How to represent XML elements with attributes
OpenAPI Specification maintainers are considering an option to use alternative data modeling schemas (for example, XSD Schema), so your use case might be supported in a future version of OpenAPI.
Related Content
- 2 years ago
- 22 days ago
- 4 years ago
Recent Discussions
- 3 days ago
- 4 days ago