core

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EitherValue

type EitherValue[L any, R any] struct {
	marshaller.CoreModel `model:"eitherValue"`

	Left   marshaller.Node[L]
	IsLeft bool

	Right   marshaller.Node[R]
	IsRight bool
}

func (*EitherValue[L, R]) GetNavigableNode

func (v *EitherValue[L, R]) GetNavigableNode() (any, error)

func (*EitherValue[L, R]) SyncChanges

func (v *EitherValue[L, R]) SyncChanges(ctx context.Context, model any, valueNode *yaml.Node) (*yaml.Node, error)

func (*EitherValue[L, R]) Unmarshal

func (v *EitherValue[L, R]) Unmarshal(ctx context.Context, parentName string, node *yaml.Node) ([]error, error)

type Value

type Value = *yaml.Node

Value represents a raw value in an OpenAPI or Arazzo document.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL