Documentation ¶
Index ¶
- func Normalize(s string) string
- type AdditionalProperties
- type AdditionalPropertiesAnyJsonItem
- type AllOf
- type Any
- type Array
- type ArrayItem
- type ArrayItems
- type Description
- type Enum
- type Example
- type JSOAC
- type Node
- type Null
- type Nullable
- type Number
- type OADType
- type Object
- type ObjectProperties
- type Or
- type Pattern
- type Primitive
- type Property
- type Ref
- type SimpleByteArray
- type UserType
- type UserTypeArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdditionalProperties ¶
type AdditionalProperties struct {
// contains filtered or unexported fields
}
func (AdditionalProperties) MarshalJSON ¶
func (a AdditionalProperties) MarshalJSON() ([]byte, error)
type AdditionalPropertiesAnyJsonItem ¶
type AdditionalPropertiesAnyJsonItem struct { Type *string `json:"type,omitempty"` Items *SimpleByteArray `json:"items,omitempty"` Format *string `json:"format,omitempty"` Ref *string `json:"$ref,omitempty"` Properties *SimpleByteArray `json:"properties,omitempty"` AdditionalProperties *bool `json:"additionalProperties,omitempty"` Enum *[]SimpleByteArray `json:"enum,omitempty"` Example *SimpleByteArray `json:"example,omitempty"` }
type AllOf ¶
type AllOf struct {
// contains filtered or unexported fields
}
func (AllOf) MarshalJSON ¶
type Any ¶
type Any struct { Example *Example `json:"example,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Any) SetNodeDescription ¶
type Array ¶
type Array struct { OADType OADType `json:"type"` Items ArrayItems `json:"items"` MinItems *int64 `json:"minItems,omitempty"` MaxItems *int64 `json:"maxItems,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Array) SetNodeDescription ¶
type ArrayItems ¶
type ArrayItems struct {
// contains filtered or unexported fields
}
func (ArrayItems) MarshalJSON ¶
func (ai ArrayItems) MarshalJSON() ([]byte, error)
type Description ¶
type Description struct {
// contains filtered or unexported fields
}
func (Description) MarshalJSON ¶
func (ex Description) MarshalJSON() (b []byte, err error)
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
func (Enum) MarshalJSON ¶
type Example ¶
type Example struct {
// contains filtered or unexported fields
}
func (Example) MarshalJSON ¶
type JSOAC ¶
type JSOAC struct {
// contains filtered or unexported fields
}
func NewFromASTNode ¶
func (JSOAC) MarshalJSON ¶
func (*JSOAC) SetDescription ¶
type Null ¶
type Null struct { Example *Example `json:"example,omitempty"` Enum *Enum `json:"enum,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Null) SetNodeDescription ¶
type Nullable ¶
type Nullable struct {
// contains filtered or unexported fields
}
func (Nullable) MarshalJSON ¶
type Number ¶
type Number struct {
// contains filtered or unexported fields
}
func (Number) MarshalJSON ¶
type Object ¶
type Object struct { OADType OADType `json:"type"` Properties ObjectProperties `json:"properties"` Required []string `json:"required,omitempty"` AllOf *AllOf `json:"allOf,omitempty"` AdditionalProperties *AdditionalProperties `json:"additionalProperties,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` // contains filtered or unexported fields }
func (*Object) SetNodeDescription ¶
type ObjectProperties ¶
type ObjectProperties struct {
// contains filtered or unexported fields
}
func (ObjectProperties) MarshalJSON ¶
func (op ObjectProperties) MarshalJSON() ([]byte, error)
type Or ¶
type Or struct { AnyOf []Node `json:"anyOf,omitempty"` Example *Example `json:"example,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Or) SetNodeDescription ¶
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
func (Pattern) MarshalJSON ¶
type Primitive ¶
type Primitive struct { OADType *OADType `json:"type,omitempty"` Example *Example `json:"example,omitempty"` Pattern *Pattern `json:"pattern,omitempty"` Format *string `json:"format,omitempty"` Enum *Enum `json:"enum,omitempty"` Minimum *Number `json:"minimum,omitempty"` Maximum *Number `json:"maximum,omitempty"` ExclusiveMinimum *bool `json:"exclusiveMinimum,omitempty"` ExclusiveMaximum *bool `json:"exclusiveMaximum,omitempty"` MinLength *int64 `json:"minLength,omitempty"` MaxLength *int64 `json:"maxLength,omitempty"` MultipleOf *float64 `json:"multipleOf,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Primitive) SetNodeDescription ¶
type Ref ¶
type Ref struct { UserType UserTypeArray `json:"allOf"` Example *Example `json:"example,omitempty"` Nullable *Nullable `json:"nullable,omitempty"` Description *Description `json:"description,omitempty"` }
func (Ref) MarshalJSON ¶
func (*Ref) SetNodeDescription ¶
type SimpleByteArray ¶
type SimpleByteArray []byte
func (SimpleByteArray) MarshalJSON ¶
func (s SimpleByteArray) MarshalJSON() ([]byte, error)
type UserType ¶
type UserType struct {
// contains filtered or unexported fields
}
func (UserType) MarshalJSON ¶
type UserTypeArray ¶
type UserTypeArray struct {
UserType
}
func (UserTypeArray) MarshalJSON ¶
func (u UserTypeArray) MarshalJSON() ([]byte, error)
Source Files ¶
- additional_properties.go
- additional_properties_any_of_json_item.go
- allof.go
- any.go
- array.go
- array_items.go
- const.go
- description.go
- enum.go
- example.go
- exclusive_maximum.go
- exclusive_minimum.go
- format.go
- jsoac.go
- max_items.go
- max_length.go
- maximum.go
- min_items.go
- min_length.go
- minimum.go
- multiple_of.go
- node.go
- null.go
- nullable.go
- number.go
- oadtype.go
- oadtype_string.go
- object.go
- object_properties.go
- or.go
- pattern.go
- primitive.go
- ref.go
- user_type.go
- user_type_array.go
Click to show internal directories.
Click to hide internal directories.