Versions in this module Expand all Collapse all v0 v0.16.2 Jun 10, 2024 Changes in this version + func ExtractExamples(...) *orderedmap.Map[string, *Example] + type Contact struct + Email string + Name string + URL string + func NewContact(contact *low.Contact) *Contact + func (c *Contact) GoLow() *low.Contact + func (c *Contact) GoLowUntyped() any + func (c *Contact) MarshalYAML() (interface{}, error) + func (c *Contact) Render() ([]byte, error) + type Discriminator struct + Mapping *orderedmap.Map[string, string] + PropertyName string + func NewDiscriminator(disc *low.Discriminator) *Discriminator + func (d *Discriminator) GoLow() *low.Discriminator + func (d *Discriminator) GoLowUntyped() any + func (d *Discriminator) MarshalYAML() (interface{}, error) + func (d *Discriminator) Render() ([]byte, error) + type DynamicValue struct + A A + B B + N int + func (d *DynamicValue[A, B]) IsA() bool + func (d *DynamicValue[A, B]) IsB() bool + func (d *DynamicValue[A, B]) MarshalYAML() (interface{}, error) + func (d *DynamicValue[A, B]) MarshalYAMLInline() (interface{}, error) + func (d *DynamicValue[A, B]) Render() ([]byte, error) + func (d *DynamicValue[A, B]) RenderInline() ([]byte, error) + type Example struct + Description string + Extensions *orderedmap.Map[string, *yaml.Node] + ExternalValue string + Summary string + Value *yaml.Node + func NewExample(example *low.Example) *Example + func (e *Example) GoLow() *low.Example + func (e *Example) GoLowUntyped() any + func (e *Example) MarshalYAML() (interface{}, error) + func (e *Example) Render() ([]byte, error) + type ExternalDoc struct + Description string + Extensions *orderedmap.Map[string, *yaml.Node] + URL string + func NewExternalDoc(extDoc *low.ExternalDoc) *ExternalDoc + func (e *ExternalDoc) GetExtensions() *orderedmap.Map[string, *yaml.Node] + func (e *ExternalDoc) GoLow() *low.ExternalDoc + func (e *ExternalDoc) GoLowUntyped() any + func (e *ExternalDoc) MarshalYAML() (interface{}, error) + func (e *ExternalDoc) Render() ([]byte, error) + type Info struct + Contact *Contact + Description string + Extensions *orderedmap.Map[string, *yaml.Node] + License *License + Summary string + TermsOfService string + Title string + Version string + func NewInfo(info *low.Info) *Info + func (i *Info) GoLow() *low.Info + func (i *Info) GoLowUntyped() any + func (i *Info) MarshalYAML() (interface{}, error) + func (i *Info) Render() ([]byte, error) + type License struct + Identifier string + Name string + URL string + func NewLicense(license *low.License) *License + func (l *License) GoLow() *low.License + func (l *License) GoLowUntyped() any + func (l *License) MarshalYAML() (interface{}, error) + func (l *License) Render() ([]byte, error) + type Schema struct + AdditionalProperties *DynamicValue[*SchemaProxy, bool] + AllOf []*SchemaProxy + Anchor string + AnyOf []*SchemaProxy + Const *yaml.Node + Contains *SchemaProxy + Default *yaml.Node + DependentSchemas *orderedmap.Map[string, *SchemaProxy] + Deprecated *bool + Description string + Discriminator *Discriminator + Else *SchemaProxy + Enum []*yaml.Node + Example *yaml.Node + Examples []*yaml.Node + ExclusiveMaximum *DynamicValue[bool, float64] + ExclusiveMinimum *DynamicValue[bool, float64] + Extensions *orderedmap.Map[string, *yaml.Node] + ExternalDocs *ExternalDoc + Format string + If *SchemaProxy + Items *DynamicValue[*SchemaProxy, bool] + MaxContains *int64 + MaxItems *int64 + MaxLength *int64 + MaxProperties *int64 + Maximum *float64 + MinContains *int64 + MinItems *int64 + MinLength *int64 + MinProperties *int64 + Minimum *float64 + MultipleOf *float64 + Not *SchemaProxy + Nullable *bool + OneOf []*SchemaProxy + ParentProxy *SchemaProxy + Pattern string + PatternProperties *orderedmap.Map[string, *SchemaProxy] + PrefixItems []*SchemaProxy + Properties *orderedmap.Map[string, *SchemaProxy] + PropertyNames *SchemaProxy + ReadOnly *bool + Required []string + SchemaTypeRef string + Then *SchemaProxy + Title string + Type []string + UnevaluatedItems *SchemaProxy + UnevaluatedProperties *DynamicValue[*SchemaProxy, bool] + UniqueItems *bool + WriteOnly *bool + XML *XML + func NewSchema(schema *base.Schema) *Schema + func (s *Schema) GoLow() *base.Schema + func (s *Schema) GoLowUntyped() any + func (s *Schema) MarshalYAML() (interface{}, error) + func (s *Schema) MarshalYAMLInline() (interface{}, error) + func (s *Schema) Render() ([]byte, error) + func (s *Schema) RenderInline() ([]byte, error) + type SchemaProxy struct + func CreateSchemaProxy(schema *Schema) *SchemaProxy + func CreateSchemaProxyRef(ref string) *SchemaProxy + func NewSchemaProxy(schema *low.NodeReference[*base.SchemaProxy]) *SchemaProxy + func (sp *SchemaProxy) BuildSchema() (*Schema, error) + func (sp *SchemaProxy) GetBuildError() error + func (sp *SchemaProxy) GetReference() string + func (sp *SchemaProxy) GetReferenceNode() *yaml.Node + func (sp *SchemaProxy) GetReferenceOrigin() *index.NodeOrigin + func (sp *SchemaProxy) GetSchemaKeyNode() *yaml.Node + func (sp *SchemaProxy) GoLow() *base.SchemaProxy + func (sp *SchemaProxy) GoLowUntyped() any + func (sp *SchemaProxy) IsReference() bool + func (sp *SchemaProxy) MarshalYAML() (interface{}, error) + func (sp *SchemaProxy) MarshalYAMLInline() (interface{}, error) + func (sp *SchemaProxy) Render() ([]byte, error) + func (sp *SchemaProxy) Schema() *Schema + type SecurityRequirement struct + ContainsEmptyRequirement bool + Requirements *orderedmap.Map[string, []string] + func NewSecurityRequirement(req *base.SecurityRequirement) *SecurityRequirement + func (s *SecurityRequirement) GoLow() *base.SecurityRequirement + func (s *SecurityRequirement) GoLowUntyped() any + func (s *SecurityRequirement) MarshalYAML() (interface{}, error) + func (s *SecurityRequirement) Render() ([]byte, error) + type Tag struct + Description string + Extensions *orderedmap.Map[string, *yaml.Node] + ExternalDocs *ExternalDoc + Name string + func NewTag(tag *low.Tag) *Tag + func (t *Tag) GoLow() *low.Tag + func (t *Tag) GoLowUntyped() any + func (t *Tag) MarshalYAML() (interface{}, error) + func (t *Tag) MarshalYAMLInline() (interface{}, error) + func (t *Tag) Render() ([]byte, error) + func (t *Tag) RenderInline() ([]byte, error) + type XML struct + Attribute bool + Extensions *orderedmap.Map[string, *yaml.Node] + Name string + Namespace string + Prefix string + Wrapped bool + func NewXML(xml *low.XML) *XML + func (x *XML) GoLow() *low.XML + func (x *XML) GoLowUntyped() any + func (x *XML) MarshalYAML() (interface{}, error) + func (x *XML) Render() ([]byte, error)