Skip to content

generate jsonschema from go's struct via go/types

License

Notifications You must be signed in to change notification settings

podhmo/genschema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genschema

generate jsonschema from go's struct via go/types

install

$ go install github.com/podhmo/genschema@latest

additional tags

  • required
  • jsonschema-override

sample data

https://github.com/deepmap/oapi-codegen

$ genschema -schema-title oapi-conf --query github.com/deepmap/oapi-codegen/pkg/codegen.Configuration > _examples/structure/testdata/oapi-codegen.jsonschema.json

About

generate jsonschema from go's struct via go/types

Resources

License

Stars

Watchers

Forks

Packages

No packages published