Documentation ¶
Index ¶
- func DefaultValue(typ *spec.TypeDef, valueStr string) interface{}
- func GenerateAndWriteOpenapi(specification *spec.Spec, outFile string) (err error)
- func GenerateOpenapi(spec *spec.Spec, outFile string) *gen.TextFile
- func ToYamlString(data interface{}) (string, error)
- type MapItem
- type UrlOperations
- 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 GenerateAndWriteOpenapi ¶ added in v2.0.419
func GenerateOpenapi ¶ added in v2.0.283
func ToYamlString ¶
Types ¶
type UrlOperations ¶
type UrlOperations struct { Url string Operations []*spec.NamedOperation }
func OperationsByUrl ¶
func OperationsByUrl(specification *spec.Spec) []*UrlOperations
Click to show internal directories.
Click to hide internal directories.