Documentation
¶
Index ¶
- func DefaultValue(typ *spec.TypeDef, valueStr string) interface{}
- func GenerateSpecification(serviceFile string, outFile string) (err error)
- func NewEnumItem(name string, description *string) *spec.NamedEnumItem
- func NewField(name string, typ spec.TypeDef, description *string) *spec.NamedDefinition
- func NewName(source string) spec.Name
- func NewObject(fields spec.NamedDefinitions, description *string) *spec.Object
- func NewOneOf(items spec.NamedDefinitions, description *string) *spec.OneOf
- func NewParam(name string, typ spec.TypeDef, defaultValue *string, description *string) *spec.NamedParam
- func NewResponse(name string, typ spec.TypeDef, description *string) *spec.NamedResponse
- type Group
- type Operation
- type YamlArray
- type YamlMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValue ¶
TODO: Default values provided in spec are actually exactly what should appear in Swagger in the string form.
This value translation string -> go type -> string is only needed because of how OpenAPI spec if formed. It's possible that after move to yaml.v3 this value translation can be avoided.
func GenerateSpecification ¶
func NewEnumItem ¶
func NewEnumItem(name string, description *string) *spec.NamedEnumItem
func NewResponse ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.