wolfadex / elm-open-api-cli

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

int64 handling #164

Open ronanyeah opened 2 days ago

ronanyeah commented 2 days ago

int64 is being handled as an Elm Int, which is unsafe. It should be String or some BigInt type.

wolfadex commented 2 days ago

@ronanyeah do you have an example schema (or portion of one) with an int64?

ronanyeah commented 2 days ago

https://github.com/ronanyeah/openapi-rust-elm/blob/master/api.json

wolfadex commented 2 days ago

Thank you! This puts further emphasis on needing to figure out how to handle formats. There's been some discussion in Discord (most recent as of now) about having an elm-review like config of sorts. Essentially, we need a way for users of the CLI tool to be able to add semi-arbitrary encoding, decoding, and types.

I don't really know what this config looks like yet but more discussion in the Discord is very welcome.