Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
Enum simple type or reference (by-name)
type GenerationOptions ¶ added in v1.0.10
type GenerationOptions struct { AddEnumPrefix bool AddMsgPrefix bool PackageNames map[string]string Imports map[string]bool }
Generation Options
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map object, used to represents AdditionalProperties
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message structure
type MessageMembers ¶
type MessageMembers struct {
// contains filtered or unexported fields
}
MESSAGE
//Option for message fields
type Option struct { name string value string }
MessageMembers Message Field definition
type Oneof ¶
type Oneof struct {
// contains filtered or unexported fields
}
Array : array of Prototype
type ProtoType ¶
ProtoType Field Type protocol buffer interface
func CreateType ¶
func CreateType(name string, schemaOrRef *oasmodel.SchemaOrRef, parent *Message, genOpts GenerationOptions) (ProtoType, error)
CreateType : convert OAS Schema to internal ProtoType
Click to show internal directories.
Click to hide internal directories.