interpolate

package
v0.179.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schema

type Schema struct {
	Type       interface{}        `json:"type"`
	Properties map[string]*Schema `json:"properties"`
	Items      *Schema            `json:"items"`
	Required   []string           `json:"required"`
	Ref        string             `json:"$ref"`
	Defs       map[string]*Schema `json:"$defs"`
}

func (*Schema) IsRequired

func (s *Schema) IsRequired(name string) bool

type StringInterpolator

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

func NewStringInterpolator

func NewStringInterpolator(schema string) (*StringInterpolator, error)

func NewStringInterpolatorJSONOnly

func NewStringInterpolatorJSONOnly(schema string) (*StringInterpolator, error)

func (*StringInterpolator) Interpolate

func (s *StringInterpolator) Interpolate(data []byte) []byte

Jump to

Keyboard shortcuts

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