Documentation
¶
Overview ¶
Package oas31 contains an implementation of the OAS v3.1 JSON Schema specification https://spec.openapis.org/oas/v3.1.0#schema-object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discriminator ¶
type Discriminator struct { PropertyName string Mapping *sequencedmap.Map[string, string] Extensions *extensions.Extensions }
type EitherValue ¶
type EitherValue[L any, LCore any, R any, RCore any] struct { marshaller.Model[core.EitherValue[LCore, RCore]] Left *L Right *R }
func (*EitherValue[L, LCore, R, RCore]) GetLeft ¶
func (e *EitherValue[L, LCore, R, RCore]) GetLeft() L
func (*EitherValue[L, LCore, R, RCore]) GetRight ¶
func (e *EitherValue[L, LCore, R, RCore]) GetRight() R
func (*EitherValue[L, LCore, R, RCore]) IsLeft ¶
func (e *EitherValue[L, LCore, R, RCore]) IsLeft() bool
func (*EitherValue[L, LCore, R, RCore]) IsRight ¶
func (e *EitherValue[L, LCore, R, RCore]) IsRight() bool
type ExclusiveMaximum ¶
type ExclusiveMaximum = *EitherValue[bool, bool, float64, float64]
func NewExclusiveMaximumFromBool ¶
func NewExclusiveMaximumFromBool(value bool) ExclusiveMaximum
func NewExclusiveMaximumFromFloat64 ¶
func NewExclusiveMaximumFromFloat64(value float64) ExclusiveMaximum
type ExclusiveMinimum ¶
type ExclusiveMinimum = *EitherValue[bool, bool, float64, float64]
func NewExclusiveMinimumFromBool ¶
func NewExclusiveMinimumFromBool(value bool) ExclusiveMinimum
func NewExclusiveMinimumFromFloat64 ¶
func NewExclusiveMinimumFromFloat64(value float64) ExclusiveMinimum
type ExternalDoc ¶
type ExternalDoc struct { Description *string URL string Extensions *extensions.Extensions }
type JSONSchema ¶
func NewJSONSchemaFromBool ¶
func NewJSONSchemaFromBool(value bool) JSONSchema
func NewJSONSchemaFromSchema ¶
func NewJSONSchemaFromSchema(value *Schema) JSONSchema
func NewJSONSchemaOrBoolFromBool ¶
func NewJSONSchemaOrBoolFromBool(value bool) JSONSchema
func NewJSONSchemaOrBoolFromJSONSchema ¶
func NewJSONSchemaOrBoolFromJSONSchema(value Schema) JSONSchema
type Schema ¶
type Schema struct { marshaller.Model[core.Schema] Ref *string ExclusiveMaximum ExclusiveMaximum ExclusiveMinimum ExclusiveMinimum Type Type AllOf []JSONSchema OneOf []JSONSchema AnyOf []JSONSchema Discriminator *Discriminator Examples []Value PrefixItems []JSONSchema Contains JSONSchema MinContains *int64 MaxContains *int64 If JSONSchema Else JSONSchema Then JSONSchema DependentSchemas *sequencedmap.Map[string, JSONSchema] PatternProperties *sequencedmap.Map[string, JSONSchema] PropertyNames JSONSchema UnevaluatedItems JSONSchema UnevaluatedProperties JSONSchema Items JSONSchema Anchor *string Not JSONSchema Properties *sequencedmap.Map[string, JSONSchema] Title *string MultipleOf *float64 Maximum *float64 Minimum *float64 MaxLength *int64 MinLength *int64 Pattern *string Format *string MaxItems *int64 MinItems *int64 UniqueItems *bool MaxProperties *int64 MinProperties *int64 Required []string Enum []Value AdditionalProperties JSONSchema Description *string Default Value Const Value Nullable *bool ReadOnly *bool WriteOnly *bool ExternalDocs *ExternalDoc Example Value Deprecated *bool Schema *string Extensions *extensions.Extensions }
type Type ¶
type Type = *EitherValue[[]string, []string, string, string]
func NewTypeFromArray ¶
func NewTypeFromString ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.