stoplightio / http-spec

Utilities to normalize OpenAPI v2 and v3 objects for the Stoplight ecosystem.

Home Page:https://stoplight.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postman Collection: inferring schema from XML example

karol-maciaszek opened this issue · comments

The transformer should be capable of inferring JSON schema from an XML payload saved in request and/or response of Postman Collection.

This should be similar to how JSON payload treated currently - https://github.com/stoplightio/http-spec/blob/master/src/postman/transformers/params.ts#L67.

We can definitely try, but that is not going to be that easy. XML had 1232903 ways to be rendered and a copious amount of quirks. We can do a best effort! Let's keep this open, I guess this will be one of the items we could work on when we'll release the Postman Collection beta support in Prism.

@karol-maciaszek @XVincentX is this issue still relevant? Can we close it?

I do not think this is a priority and likely this feature is not going to be asked by anybody. I'm ok closing it.