Versions in this module Expand all Collapse all v0 v0.2.0 May 9, 2024 Changes in this version + func Normalize(s string) string + type AdditionalProperties struct + func (a AdditionalProperties) MarshalJSON() ([]byte, error) + type AdditionalPropertiesAnyJsonItem struct + AdditionalProperties *bool + Enum *[]SimpleByteArray + Example *SimpleByteArray + Format *string + Items *SimpleByteArray + Properties *SimpleByteArray + Ref *string + Type *string + type AllOf struct + func (a AllOf) MarshalJSON() ([]byte, error) + type Any struct + Description *Description + Example *Example + Nullable *Nullable + func (n *Any) SetNodeDescription(s string) + type Array struct + Description *Description + Items ArrayItems + MaxItems *int64 + MinItems *int64 + Nullable *Nullable + OADType OADType + func (a *Array) SetNodeDescription(s string) + type ArrayItem struct + type ArrayItems struct + func (ai ArrayItems) MarshalJSON() ([]byte, error) + type Description struct + func (ex Description) MarshalJSON() (b []byte, err error) + type Enum struct + func (e Enum) MarshalJSON() ([]byte, error) + type Example struct + func (ex Example) MarshalJSON() (b []byte, err error) + type JSOAC struct + func New(j *jschema.JSchema) *JSOAC + func NewFromASTNode(astNode schema.ASTNode) *JSOAC + func (o *JSOAC) SetDescription(s string) + func (o JSOAC) MarshalJSON() (b []byte, err error) + type Node interface + SetNodeDescription func(string) + type Null struct + Description *Description + Enum *Enum + Example *Example + Nullable *Nullable + func (n *Null) SetNodeDescription(s string) + type Nullable struct + func (n Nullable) MarshalJSON() (b []byte, err error) + type Number struct + func (n Number) MarshalJSON() (b []byte, err error) + type OADType int + const OADTypeArray + const OADTypeBoolean + const OADTypeInteger + const OADTypeNumber + const OADTypeObject + const OADTypeString + func (i OADType) String() string + func (t OADType) MarshalJSON() (b []byte, err error) + type Object struct + AdditionalProperties *AdditionalProperties + AllOf *AllOf + Description *Description + Nullable *Nullable + OADType OADType + Properties ObjectProperties + Required []string + func (o *Object) SetNodeDescription(s string) + type ObjectProperties struct + func (op ObjectProperties) MarshalJSON() ([]byte, error) + type Or struct + AnyOf []Node + Description *Description + Example *Example + Nullable *Nullable + func (o *Or) SetNodeDescription(s string) + type Pattern struct + func (ex Pattern) MarshalJSON() (b []byte, err error) + type Primitive struct + Description *Description + Enum *Enum + Example *Example + ExclusiveMaximum *bool + ExclusiveMinimum *bool + Format *string + MaxLength *int64 + Maximum *Number + MinLength *int64 + Minimum *Number + MultipleOf *float64 + Nullable *Nullable + OADType *OADType + Pattern *Pattern + func (p *Primitive) SetNodeDescription(s string) + type Property struct + type Ref struct + Description *Description + Example *Example + Nullable *Nullable + UserType UserTypeArray + func (r *Ref) SetNodeDescription(s string) + func (r Ref) MarshalJSON() ([]byte, error) + type SimpleByteArray []byte + func (s SimpleByteArray) MarshalJSON() ([]byte, error) + type UserType struct + func (u UserType) MarshalJSON() ([]byte, error) + type UserTypeArray struct + func (u UserTypeArray) MarshalJSON() ([]byte, error)