Documentation
¶
Index ¶
- Constants
- type Action
- func (a *Action) Build(ctx context.Context, keyNode, root *yaml.Node, idx *index.SpecIndex) error
- func (a *Action) FindExtension(ext string) *low.ValueReference[*yaml.Node]
- func (a *Action) GetContext() context.Context
- func (a *Action) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
- func (a *Action) GetIndex() *index.SpecIndex
- func (a *Action) GetKeyNode() *yaml.Node
- func (a *Action) GetRootNode() *yaml.Node
- func (a *Action) Hash() [32]byte
- type Info
- func (i *Info) Build(ctx context.Context, keyNode, root *yaml.Node, idx *index.SpecIndex) error
- func (i *Info) FindExtension(ext string) *low.ValueReference[*yaml.Node]
- func (i *Info) GetContext() context.Context
- func (i *Info) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
- func (i *Info) GetIndex() *index.SpecIndex
- func (i *Info) GetKeyNode() *yaml.Node
- func (i *Info) GetRootNode() *yaml.Node
- func (i *Info) Hash() [32]byte
- type Overlay
- func (o *Overlay) Build(ctx context.Context, keyNode, root *yaml.Node, idx *index.SpecIndex) error
- func (o *Overlay) FindExtension(ext string) *low.ValueReference[*yaml.Node]
- func (o *Overlay) GetContext() context.Context
- func (o *Overlay) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
- func (o *Overlay) GetIndex() *index.SpecIndex
- func (o *Overlay) GetKeyNode() *yaml.Node
- func (o *Overlay) GetRootNode() *yaml.Node
- func (o *Overlay) Hash() [32]byte
Constants ¶
const ( OverlayLabel = "overlay" InfoLabel = "info" ExtendsLabel = "extends" ActionsLabel = "actions" TitleLabel = "title" VersionLabel = "version" TargetLabel = "target" DescriptionLabel = "description" UpdateLabel = "update" RemoveLabel = "remove" )
Constants for labels used to look up values within OpenAPI Overlay specifications. https://spec.openapis.org/overlay/v1.0.0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Target low.NodeReference[string]
Description low.NodeReference[string]
Update low.NodeReference[*yaml.Node]
Remove low.NodeReference[bool]
Extensions *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
KeyNode *yaml.Node
RootNode *yaml.Node
*low.Reference
low.NodeMap
// contains filtered or unexported fields
}
Action represents a low-level Overlay Action Object. https://spec.openapis.org/overlay/v1.0.0#action-object
func (*Action) FindExtension ¶
FindExtension returns a ValueReference containing the extension value, if found.
func (*Action) GetContext ¶
GetContext returns the context.Context instance used when building the Action object
func (*Action) GetExtensions ¶
func (a *Action) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
GetExtensions returns all Action extensions and satisfies the low.HasExtensions interface.
func (*Action) GetIndex ¶
GetIndex returns the index.SpecIndex instance attached to the Action object
func (*Action) GetKeyNode ¶
GetKeyNode returns the key yaml node of the Action object
func (*Action) GetRootNode ¶
GetRootNode returns the root yaml node of the Action object
type Info ¶
type Info struct {
Title low.NodeReference[string]
Version low.NodeReference[string]
Extensions *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
KeyNode *yaml.Node
RootNode *yaml.Node
*low.Reference
low.NodeMap
// contains filtered or unexported fields
}
Info represents a low-level Overlay Info Object. https://spec.openapis.org/overlay/v1.0.0#info-object
func (*Info) FindExtension ¶
FindExtension returns a ValueReference containing the extension value, if found.
func (*Info) GetContext ¶
GetContext returns the context.Context instance used when building the Info object
func (*Info) GetExtensions ¶
func (i *Info) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
GetExtensions returns all Info extensions and satisfies the low.HasExtensions interface.
func (*Info) GetKeyNode ¶
GetKeyNode returns the key yaml node of the Info object
func (*Info) GetRootNode ¶
GetRootNode returns the root yaml node of the Info object
type Overlay ¶
type Overlay struct {
Overlay low.NodeReference[string]
Info low.NodeReference[*Info]
Extends low.NodeReference[string]
Actions low.NodeReference[[]low.ValueReference[*Action]]
Extensions *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
KeyNode *yaml.Node
RootNode *yaml.Node
*low.Reference
low.NodeMap
// contains filtered or unexported fields
}
Overlay represents a low-level OpenAPI Overlay document. https://spec.openapis.org/overlay/v1.0.0
func (*Overlay) FindExtension ¶
FindExtension returns a ValueReference containing the extension value, if found.
func (*Overlay) GetContext ¶
GetContext returns the context.Context instance used when building the Overlay object
func (*Overlay) GetExtensions ¶
func (o *Overlay) GetExtensions() *orderedmap.Map[low.KeyReference[string], low.ValueReference[*yaml.Node]]
GetExtensions returns all Overlay extensions and satisfies the low.HasExtensions interface.
func (*Overlay) GetIndex ¶
GetIndex returns the index.SpecIndex instance attached to the Overlay object
func (*Overlay) GetKeyNode ¶
GetKeyNode returns the key yaml node of the Overlay object
func (*Overlay) GetRootNode ¶
GetRootNode returns the root yaml node of the Overlay object