RapiDoc
RapiDoc copied to clipboard
XML : missing namespace + incorrect name for array items
Given the following (Swagger v2) specs:
responses:
HeadpointPortfolio:
schema:
type: array
xml:
name: headpoints
namespace: 'http://erpgis.haulogy.net/api/v1/crm'
wrapped: true
items:
$ref: '#/definitions/HpPortfolioEntry'
definitions:
HpPortfolioEntry:
type: object
xml:
namespace: 'http://erpgis.haulogy.net/api/v1/crm'
name: headpoint
The proposed xml response is:
having two issues:
- xml namespaces is not rendered (red arrow)
- entries of array do not use the provided xml element name (green arrow)
Here is the output of SwaggerUI:
Thanks for the detailed use case and screenshot !!!
Our schema to XML converter is pretty rudimentary,
we just started providing this feature from 7.5.0
, will be improving it soon
You are welcome. We have a bunch of Api's supporting both json and xml, that I could easily use to thoughtfully test next releases of XML converter.
Once your XML renderer will be as robust as the json one, I will convince my team to switch from swagger-to-markup and SwaggerUI to RapiDoc & RapiPdf and :-)
@mrin9 any updates regarding this issue?
@mrin9 has this been fixed or something that is being worked upon? Thanks!
I changed from swagger to rapidoc. I'am very satisfied with seemless integration into our backend. But is there any progress with xml rendering? or an entry point to do something myself?
for test case checkout - https://rapidocweb.com/examples/xml.html
for using and testing on your end pick rapidoc-min.js
from dist
folder in this repo