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.
eeue56 commented
This would be the place to get started -> https://github.com/eeue56/json-to-elm/blob/master/elm/TypeAlias.elm#L50