https://github.com/dnephin/swagger-gen-types
generate go types from a swagger spec
https://github.com/dnephin/swagger-gen-types
Last synced: 24 days ago
JSON representation
generate go types from a swagger spec
- Host: GitHub
- URL: https://github.com/dnephin/swagger-gen-types
- Owner: dnephin
- Created: 2018-03-27T17:57:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T20:03:01.000Z (about 7 years ago)
- Last Synced: 2025-03-25T14:21:46.649Z (about 1 month ago)
- Language: Go
- Size: 1.94 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swagger Generate Types
Generate Go types for definitions and responses in a Swagger V2 spec.
* Use `x-nullable: true` to make something a pointer, defaults to false
* Use `required` on the object to make a field not `omitempty`, defaults to
`omitempty`.
* Use `title` of a schema to set the Go struct of field name.