eeue56/json-to-elm

Camel-case-ize properties with spaces

Closed this issue · 3 comments

tmcw commented

An input of

{ "hi there": true }

Produces a record type of

type alias Something =
    { hi there : Bool
    }

Which is invalid Elm syntax - what will actually be generated is

type alias Something =
    { hiThere : Bool
    }

Happy to contribute a PR, but currently stuck on elm 0.17 compatibility - this package is currently for 0.16.x. Updating to 0.17 in that line of elm-package.json produces a generic

Error: Unable to find a set of packages that will work with your constraints.

So I'm not sure what would be necessary to make the packages fit the constraints.

tmcw commented

Closing; no response.

@tmcw Make a PR against the 0.16 code base