swagger-test icon indicating copy to clipboard operation
swagger-test copied to clipboard

Add support for yaml

Open lucaslago opened this issue 6 years ago • 3 comments

It would be nice if we added support to yaml defined swagger spec

lucaslago avatar May 02 '18 22:05 lucaslago

Great idea!

earldouglas avatar May 03 '18 13:05 earldouglas

Should be straight forward, open as yaml and dump to json, still the same pipeline. Although doing it right means supporting split yaml files (and json files), as such https://azimi.me/2015/07/16/split-swagger-into-smaller-files.html

sunapi386 avatar Jun 29 '18 00:06 sunapi386

For command line use, it would be good to add to the README a simple workaround: python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout)' < swagger.yaml | swagger-test

radeklat avatar Jul 20 '18 09:07 radeklat