An open API service indexing awesome lists of open source software.

https://github.com/sevenval/structgen

go code generation based on a given json-schema
https://github.com/sevenval/structgen

code generation go golang json json-schema struct

Last synced: 1 day ago
JSON representation

go code generation based on a given json-schema

Awesome Lists containing this project

README

          

# structgen

Generate [Go](https://golang.org) Structs out of a given [JSON Schema](http://json-schema.org/)

This generator creates at least `map[string]*Object` fields and more objects with deeper nesting in the schema tree. Also considering the more important `PatternProperties` for e.g. a docker-compose schema.

## Status

Some kind of alpha. Issues / MRs are welcome.

### Known issues

* Resolve more `interface{}` types
* run some kind `go fmt` for the generated output