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

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

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.