cowboy_swagger
cowboy_swagger copied to clipboard
Swagger integration for Cowboy (built on trails)
For using 'required' key swagger_specifitaion in '$ref' schema defiintion.
E.g. a cowboy binding [`:id`](https://github.com/inaka/sumo_rest/blob/a6bbe2151f2576e79ccc703d8a55a18809a39484/test/sr_test/sr_single_element_handler.erl#L66) must have a corresponding Swagger parameter named [`id`](https://github.com/inaka/sumo_rest/blob/a6bbe2151f2576e79ccc703d8a55a18809a39484/test/sr_test/sr_single_element_handler.erl#L33). Current behaviour is that such constraint is not enforced hence cowboy_swagger generates `/api-docs/swagger.json` for UI accessible at...
I ran some compliance issues which can be fixed in the examples section (how to use cowboy-swagger), or in the code itself (what cowboy-swagger generates). - in the info object...
Allows the input spec to use either atoms or binaries as map keys. E.g., if parsing an external JSON file instead of using inline Erlang maps in the handler modules,...
is there any way to generate swagger.json on build time?
Maybe even serve it over GitHub Pages, if possible (?) Even if it does nothing (server -wise) it would be nice to have the OpenAPI UI available as a demo....
If I Use the Name "authorization" when I add Header in Parameters, it doesn't send the Header, but if I use any other word besides "authorization", it sends the header....
hi! I'm getting this error in the Swagger UI:  the fact that it could not resolve pointer: `/definitions/`, instead of going for `/components/schemas/` suggests that it is set for...