WTOccasional Visitor3 years agoSwagger xml attribute representationSwagger lacks representing xml with attributes properly. I think the problem is OpenApi only considered key/value pair each element just like JSON. Is there any plan to fix it. Example of xml <...Show More
ponelatStaff3 years agoHi WT XML is supported by OpenAPI, take a look at https://swagger.io/docs/specification/data-models/representing-xml/. Here is your example written down... openapi: 3.0.3 info: title: XML Example description: XML Example version: "0.1" paths: /foo: post: requestBody: content: application/xml: schema: $ref: '#/components/schemas/Message' responses: '201': description: Created content: application/xml: schema: $ref: '#/components/schemas/Message' components: schemas: Message: type: object xml: name: MESSAGE properties: att1: type: string example: Name xml: attribute: true att2: type: string example: DOB xml: attribute: true
Related ContentDefining conditional attributes in OpenAPInesting in XML representationSwagger Response In ArrayMissing XML representation of response.Representation of REST Mocks in WebUI
Recent DiscussionsIssue with INT ENUM types while generating for pythonconvert our OpenAPI 2.0 swagger files to OpenAPI 3.0 on-premisesExploring Tax-saving Options: SBI Long Term Equity Fund vs. Parag Parikh Tax Saver FundOpenApi enum with multiple valuesMultiple urls for tokenUrl for multiple servers