Documentation
¶
Index ¶
Constants ¶
View Source
const (
NumOfFieldTypes = 15 // Supported number of field types
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Name string
Description string
Type FieldType
Format string
Nested *Message
IsVariable bool
}
Field represents a single field within a message.
type FieldType ¶
type FieldType int
FieldType enumerates the supported concrete field types.
const ( FieldTypeUint64 FieldType = iota FieldTypeInt64 FieldTypeFloat64 FieldTypeUint32 FieldTypeInt32 FieldTypeFloat32 FieldTypeString // uint32 length prefix in fixed header FieldTypeBytes // uint32 length prefix in fixed header FieldTypeObject // uint32 length prefix in fixed header FieldTypeArray // uint32 length prefix in fixed header FieldTypeUint16 FieldTypeInt16 FieldTypeUint8 FieldTypeInt8 FieldTypeBool )
func (FieldType) IsVariable ¶
IsVariable returns true if the field type has variable length.
type Schema ¶
type Schema struct {
Messages []*Message
}
Schema represents a parsed collection of message types from an OpenAPI spec.
Click to show internal directories.
Click to hide internal directories.