package
0.3.0
Repository: https://github.com/taaraora/gnostic.git
Documentation: pkg.go.dev

# README

Compiler support code

This directory contains compiler support code used by Gnostic and Gnostic extensions.

# Functions

ConvertInterfaceArrayToStringArray converts an array of interfaces to an array of strings, if possible.
DescribeMap describes a map (for debugging purposes).
No description provided by the author
No description provided by the author
FetchFile gets a specified file from the local filesystem or a remote location.
HandleExtension calls a binary extension handler.
InvalidKeysInMap returns keys in a map that don't match a list of allowed keys and patterns.
MapHasKey returns true if a yaml.MapSlice contains a specified key.
MapValueForKey gets the value of a map value for a specified key.
MissingKeysInMap identifies which keys from a list of required keys are not in a map.
NewContext returns a new object representing the compiler state.
NewContextWithExtensions returns a new object representing the compiler state.
NewError creates an Error.
NewErrorGroupOrNil returns a new ErrorGroup for a slice of errors or nil if the slice is empty.
PluralProperties returns the string "properties" pluralized.
ReadBytesForFile reads the bytes of a file.
ReadInfoForRef reads a file and return the fragment needed to resolve a $ref.
ReadInfoFromBytes unmarshals a file as a yaml.MapSlice.
No description provided by the author
No description provided by the author
SortedKeysForMap returns the sorted keys of a yaml.MapSlice.
StringArrayContainsValue returns true if a string array contains a specified value.
StringArrayContainsValues returns true if a string array contains all of a list of specified values.
StringValue returns the string value of an item.
UnpackMap gets a yaml.MapSlice if possible.

# Structs

Context contains state of the compiler as it traverses a document.
Error represents compiler errors and their location in the document.
ErrorGroup is a container for groups of Error values.
ExtensionHandler describes a binary that is called by the compiler to handle specification extensions.