schema

package
v0.2.69 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunction

func AddFunction(funcs *[]FunctionInfo, s string, i1, i2 int)

Types

type BooleanDefinition

type BooleanDefinition struct {
}

type Definition

type Definition struct {
	Context       []string
	Mapping       *MappingDefinition
	Sequence      *SequenceDefinition
	OneOf         *[]string `json:"one-of"`
	AllowedValues *[]string `json:"allowed-values"`
	String        *StringDefinition
	Number        *NumberDefinition
	Boolean       *BooleanDefinition
	Null          *NullDefinition
}

type FunctionInfo

type FunctionInfo struct {
	// contains filtered or unexported fields
}

type MappingDefinition

type MappingDefinition struct {
	Properties     map[string]MappingProperty
	LooseKeyType   string `json:"loose-key-type"`
	LooseValueType string `json:"loose-value-type"`
}

type MappingProperty

type MappingProperty struct {
	Type     string
	Required bool
}

func (*MappingProperty) UnmarshalJSON

func (s *MappingProperty) UnmarshalJSON(data []byte) error

type Node

type Node struct {
	Definition string
	Schema     *Schema
	Context    []string
}

func (*Node) GetFunctions

func (s *Node) GetFunctions() *[]FunctionInfo

func (*Node) UnmarshalYAML

func (s *Node) UnmarshalYAML(node *yaml.Node) error

type NullDefinition

type NullDefinition struct {
}

type NumberDefinition

type NumberDefinition struct {
}

type Schema

type Schema struct {
	Definitions map[string]Definition
}

func GetActionSchema

func GetActionSchema() *Schema

func GetWorkflowSchema

func GetWorkflowSchema() *Schema

func (*Schema) GetDefinition

func (s *Schema) GetDefinition(name string) Definition

type SequenceDefinition

type SequenceDefinition struct {
	ItemType string `json:"item-type"`
}

type StringDefinition

type StringDefinition struct {
	Constant     string
	IsExpression bool `json:"is-expression"`
}

Jump to

Keyboard shortcuts

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