Open glodieu opened 8 years ago
Interesting, could you provide the before and after swagger's separately, perhaps in a couple of linked gists?
One thing I noticed right off the bat is that the original swagger is not valid - the "host" property should have the actual host, not the protocol. And the "basePath" property should not have the host, it should have a relative path or nothing.
Hi Marc, I'm attaching before.json and after.json. Regarding host and baseHost... such file is hosted in mulesoft/api-spec-converter repo (https://github.com/mulesoft/api-spec-converter/blob/master/example/source/swagger.json) I'll talk with Christian Vogel about this. Thanks a lot for you help! Gaston
Hi Marc, File that we're mentioned is hosted in this repository https://github.com/stoplightio/api-spec-converter/blob/master/example/source/swagger.json Thanks. Gaston
OH I read that as a diff of the input swagger to output swagger, not as a test result, whoops! We will take a look, thanks for pointing this out.
I'm trying to run test that converts from swagger to raml to swagger using this file https://github.com/mulesoft/api-spec-converter/blob/master/example/source/swagger.json that is not working. Test results in a lot of differences. Thanks. Gaston
` 167 passing (2s) 46 pending 1 failing
1) Converter convert should convert reversly from swagger to raml without loss:
Writing coverage object [/Users/gaston/stoplightio/api-spec-converter/coverage/coverage.json]
Writing coverage reports at [/Users/gaston/stoplightio/api-spec-converter/coverage]
=============================== Coverage summary =============================== Statements : 87.54% ( 1743/1991 ) Branches : 73.48% ( 690/939 ) Functions : 91.38% ( 350/383 ) Lines : 87.57% ( 1740/1987 ) ================================================================================`