nightingale-rest-api-client icon indicating copy to clipboard operation
nightingale-rest-api-client copied to clipboard

Add support for swagger v2 json import

Open paulovila opened this issue 5 years ago • 5 comments

When I try to import a swagger file it says: Extension not supported | .json | swagger.json The file is like: image

paulovila avatar Jun 29 '20 11:06 paulovila

Thanks @paulovila for the github issue! I will look into this soon.

dpaulino avatar Jul 02 '20 05:07 dpaulino

@paulovila did some investigations. Looks like you're trying to import a swagger v2 json file, which Nightingale does not support right now. It only supports swagger/openapi v3 yaml files.

dpaulino avatar Jul 11 '20 03:07 dpaulino

If you'd like, we can rename this issue to "add support for swagger v2 json import" and I can try to add this when I get some time

dpaulino avatar Jul 11 '20 03:07 dpaulino

I just open sourced Nightingale's swagger/openapi converter code. If anyone wants to help add this feature, I'd be extremely grateful! Here is the swagger code: https://github.com/jenius-apps/nightingale-core/tree/master/src/Nightingale.Converters/Swagger

dpaulino avatar Oct 18 '20 18:10 dpaulino

@paulovila did some investigations. Looks like you're trying to import a swagger v2 json file, which Nightingale does not support right now. It only supports swagger/openapi v3 yaml files.

it would be great, if the file picker would reflect the fact, that you expect a yaml file there. The error message doesnt state either, what is expected there.

grafik

Insire avatar Jan 08 '21 20:01 Insire