a-h / generate

Generates Go (golang) Structs from JSON schema.
MIT License
444 stars 136 forks source link

schemas aren't gofmt compliant #51

Open bensherman opened 6 years ago

bensherman commented 6 years ago

A totally reasonable super great two spaces for indentation are used in autogenerated code, so we have to run our code through gofmt before we check in our radically generated schemas.

This is a feature request to make the code congruent with gofmt output. I'll be happy to sent a PR or listen to a "this a dumb idea, don't do it" response.

a-h commented 5 years ago

Would be cool to use the real go fmt tool on the code after generation rather than updating the generation. There's a big pull request on, after that's merged would be a good time.