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

Rename the Error type #97

Closed miniBill closed 5 months ago

miniBill commented 5 months ago

This is a commit such that the example compiles, but it's a terrible workaround that just changes one name clash for an eventual new name clash in the future.

I don't have a great idea, possibly we should just rename types if they're called "Error" in the OAS?

wolfadex commented 5 months ago

Note for future readers, we discussed this in Discord and think we'll be moving forward with moving the module <namespace/OpenApi.elm to OpenApi/Common.elm and the Error type can be moved there (along with other helper code).