wolfadex / elm-open-api-cli

A CLI tool for generating Elm modules from Open API specs.
https://www.npmjs.com/package/elm-open-api
25 stars 6 forks source link

Improved error message #141

Open wolfadex opened 2 months ago

wolfadex commented 2 months ago

https://github.com/wolfadex/elm-open-api-cli/blob/3b16258eca6c6d5f1a91d62d5bcf0fef1bd9edc2/src/OpenApi/Generate.elm#L2159-L2162

This error message could be improved to give examples of how to resolve it. An example of the output might look like

Warning: Among the 1 possible responses, there was no successful one.

  at /vats/{id} -> GET
  at /tenants/{id} -> GET
  at /tenants -> GET  

Make sure your spec defines a 2XX and/or 3XX response for these endpoints.