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
- Host: GitHub
- URL: https://github.com/sevenval/structgen
- Owner: sevenval
- License: bsd-2-clause
- Created: 2018-03-21T23:37:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T15:14:12.000Z (almost 8 years ago)
- Last Synced: 2026-01-26T14:36:50.081Z (13 days ago)
- Topics: code, generation, go, golang, json, json-schema, struct
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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