Versions in this module Expand all Collapse all v0 v0.16.2 Jun 10, 2024 Changes in this version + const HASH + func AreEqual(l, r Hashable) bool + func BuildModel(node *yaml.Node, model interface{}) error + func BuildModelAsync(n *yaml.Node, model interface{}, lwg *sync.WaitGroup, errors *[]error) + func ExtractExtensions(root *yaml.Node) *orderedmap.Map[KeyReference[string], ValueReference[*yaml.Node]] + func ExtractMapExtensions[PT Buildable[N], N any](ctx context.Context, label string, root *yaml.Node, idx *index.SpecIndex, ...) (*orderedmap.Map[KeyReference[string], ValueReference[PT]], *yaml.Node, ...) + func ExtractMapNoLookupExtensions[PT Buildable[N], N any](ctx context.Context, root *yaml.Node, idx *index.SpecIndex, ...) (*orderedmap.Map[KeyReference[string], ValueReference[PT]], error) + func ExtractMapNoLookup[PT Buildable[N], N any](ctx context.Context, root *yaml.Node, idx *index.SpecIndex) (*orderedmap.Map[KeyReference[string], ValueReference[PT]], error) + func ExtractMap[PT Buildable[N], N any](ctx context.Context, label string, root *yaml.Node, idx *index.SpecIndex) (*orderedmap.Map[KeyReference[string], ValueReference[PT]], *yaml.Node, ...) + func ExtractObjectRaw[T Buildable[N], N any](ctx context.Context, key, root *yaml.Node, idx *index.SpecIndex) (T, error, bool, string) + func FindItemInOrderedMapWithKey[T any](item string, ...) (*KeyReference[string], *ValueReference[T]) + func GenerateHashString(v any) string + func GetCircularReferenceResult(node *yaml.Node, idx *index.SpecIndex) *index.CircularReferenceResult + func HashExtensions(ext *orderedmap.Map[KeyReference[string], ValueReference[*yaml.Node]]) []string + func HashToString(hash [32]byte) string + func IsCircular(node *yaml.Node, idx *index.SpecIndex) bool + func LocateRefEnd(ctx context.Context, root *yaml.Node, idx *index.SpecIndex, depth int) (*yaml.Node, *index.SpecIndex, error, context.Context) + func LocateRefNode(root *yaml.Node, idx *index.SpecIndex) (*yaml.Node, *index.SpecIndex, error) + func LocateRefNodeWithContext(ctx context.Context, root *yaml.Node, idx *index.SpecIndex) (*yaml.Node, *index.SpecIndex, error, context.Context) + func SetField(field *reflect.Value, valueNode *yaml.Node, keyNode *yaml.Node) + func SetReference(obj any, ref string, refNode *yaml.Node) + func ValueToString(v any) string + type Buildable interface + Build func(ctx context.Context, key, value *yaml.Node, idx *index.SpecIndex) error + type HasDescription interface + GetDescription func() *NodeReference[string] + type HasExtensions interface + GetExtensions func() *orderedmap.Map[KeyReference[string], ValueReference[*yaml.Node]] + type HasExtensionsUntyped interface + GetExtensions func() *orderedmap.Map[KeyReference[string], ValueReference[*yaml.Node]] + type HasExternalDocs interface + GetExternalDocs func() *NodeReference[any] + type HasInfo interface + GetInfo func() *NodeReference[any] + type HasKeyNode interface + GetKeyNode func() *yaml.Node + type HasValue interface + GetValue func() T + GetValueNode func() *yaml.Node + IsEmpty func() bool + type HasValueNode interface + GetValueNode func() *yaml.Node + type HasValueNodeUntyped interface + GetValueNode func() *yaml.Node + type HasValueUnTyped interface + GetValueNode func() *yaml.Node + GetValueUntyped func() any + type Hashable interface + Hash func() [32]byte + type IsReferenced interface + GetReference func() string + GetReferenceNode func() *yaml.Node + IsReference func() bool + type KeyReference struct + KeyNode *yaml.Node + Value T + func (n KeyReference[T]) GenerateMapKey() string + func (n KeyReference[T]) GetKeyNode() *yaml.Node + func (n KeyReference[T]) GetValueUntyped() any + func (n KeyReference[T]) IsEmpty() bool + func (n KeyReference[T]) MarshalYAML() (interface{}, error) + type NodeReference struct + Context context.Context + KeyNode *yaml.Node + Value T + ValueNode *yaml.Node + func ExtractObject[T Buildable[N], N any](ctx context.Context, label string, root *yaml.Node, idx *index.SpecIndex) (NodeReference[T], error) + func (n NodeReference[T]) GenerateMapKey() string + func (n NodeReference[T]) GetKeyNode() *yaml.Node + func (n NodeReference[T]) GetValue() T + func (n NodeReference[T]) GetValueNode() *yaml.Node + func (n NodeReference[T]) GetValueUntyped() any + func (n NodeReference[T]) IsEmpty() bool + func (n NodeReference[T]) Mutate(value T) NodeReference[T] + func (n NodeReference[T]) NodeLineNumber() int + type OpenAPIHeader interface + GetAllowEmptyValue func() *NodeReference[bool] + GetAllowReserved func() *NodeReference[bool] + GetContent func() *NodeReference[any] + GetDeprecated func() *NodeReference[bool] + GetExample func() *NodeReference[*yaml.Node] + GetExamples func() *NodeReference[any] + GetExplode func() *NodeReference[bool] + GetRequired func() *NodeReference[bool] + GetSchema func() *NodeReference[any] + GetStyle func() *NodeReference[string] + Hash func() [32]byte + type OpenAPIOperations interface + GetCallbacks func() NodeReference[*orderedmap.Map[KeyReference[string], ValueReference[any]]] + GetServers func() NodeReference[any] + type OpenAPIParameter interface + GetAllowReserved func() *NodeReference[bool] + GetContent func() *NodeReference[any] + GetDeprecated func() *NodeReference[bool] + GetExample func() *NodeReference[*yaml.Node] + GetExamples func() *NodeReference[any] + GetExplode func() *NodeReference[bool] + GetStyle func() *NodeReference[string] + type Reference struct + func (r *Reference) SetReference(ref string, node *yaml.Node) + func (r Reference) GetReference() string + func (r Reference) GetReferenceNode() *yaml.Node + func (r Reference) IsReference() bool + type SetReferencer interface + SetReference func(ref string, node *yaml.Node) + type SharedOperations interface + GetDeprecated func() NodeReference[bool] + GetDescription func() NodeReference[string] + GetExtensions func() *orderedmap.Map[KeyReference[string], ValueReference[*yaml.Node]] + GetExternalDocs func() NodeReference[any] + GetOperationId func() NodeReference[string] + GetParameters func() NodeReference[any] + GetResponses func() NodeReference[any] + GetSecurity func() NodeReference[any] + GetSummary func() NodeReference[string] + GetTags func() NodeReference[[]ValueReference[string]] + type SharedParameters interface + GetAllowEmptyValue func() *NodeReference[bool] + GetIn func() *NodeReference[string] + GetName func() *NodeReference[string] + GetRequired func() *NodeReference[bool] + GetSchema func() *NodeReference[any] + Hash func() [32]byte + type SwaggerHeader interface + GetCollectionFormat func() *NodeReference[string] + GetDefault func() *NodeReference[*yaml.Node] + GetEnum func() *NodeReference[[]ValueReference[*yaml.Node]] + GetExclusiveMaximum func() *NodeReference[bool] + GetExclusiveMinimum func() *NodeReference[bool] + GetFormat func() *NodeReference[string] + GetItems func() *NodeReference[any] + GetMaxItems func() *NodeReference[int] + GetMaxLength func() *NodeReference[int] + GetMaximum func() *NodeReference[int] + GetMinItems func() *NodeReference[int] + GetMinLength func() *NodeReference[int] + GetMinimum func() *NodeReference[int] + GetMultipleOf func() *NodeReference[int] + GetPattern func() *NodeReference[string] + GetType func() *NodeReference[string] + GetUniqueItems func() *NodeReference[bool] + Hash func() [32]byte + type SwaggerOperations interface + GetConsumes func() NodeReference[[]ValueReference[string]] + GetProduces func() NodeReference[[]ValueReference[string]] + GetSchemes func() NodeReference[[]ValueReference[string]] + type SwaggerParameter interface + GetCollectionFormat func() *NodeReference[string] + GetDefault func() *NodeReference[*yaml.Node] + GetEnum func() *NodeReference[[]ValueReference[*yaml.Node]] + GetExclusiveMaximum func() *NodeReference[bool] + GetExclusiveMinimum func() *NodeReference[bool] + GetFormat func() *NodeReference[string] + GetMaxItems func() *NodeReference[int] + GetMaxLength func() *NodeReference[int] + GetMaximum func() *NodeReference[int] + GetMinItems func() *NodeReference[int] + GetMinLength func() *NodeReference[int] + GetMinimum func() *NodeReference[int] + GetMultipleOf func() *NodeReference[int] + GetPattern func() *NodeReference[string] + GetType func() *NodeReference[string] + GetUniqueItems func() *NodeReference[bool] + type ValueReference struct + Value T + ValueNode *yaml.Node + func ExtractArray[T Buildable[N], N any](ctx context.Context, label string, root *yaml.Node, idx *index.SpecIndex) ([]ValueReference[T], *yaml.Node, *yaml.Node, error) + func FindItemInOrderedMap[T any](item string, ...) *ValueReference[T] + func (n ValueReference[T]) GenerateMapKey() string + func (n ValueReference[T]) GetValue() T + func (n ValueReference[T]) GetValueNode() *yaml.Node + func (n ValueReference[T]) GetValueUntyped() any + func (n ValueReference[T]) IsEmpty() bool + func (n ValueReference[T]) MarshalYAML() (interface{}, error) + func (n ValueReference[T]) Mutate(value T) ValueReference[T] + func (n ValueReference[T]) NodeLineNumber() int