Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(doc libopenapi.Document, path, packageName string) error
Generate go models from OpenAPI spec schemas into a go file.
func IsSimpleSchema ¶
IsSimpleSchema returns true if the schema is a scalar type, false otherwise.
func RenderSchema ¶
func RenderSchema(schemaName string, s *base.SchemaProxy) ([]byte, error)
RenderSchema returns generated go code from an OpenAPI Schema proxy object.
func RenderSimpleType ¶
RenderSimpleType returns the type of a simple go type, not an object, map, array...etc. This function is called if you are sure IsSimpleSchema(s *base.Schema) return true. Add more simple type here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.