Versions in this module Expand all Collapse all v0 v0.16.2 Jun 10, 2024 Changes in this version + var ArrayLabel = "array" + var BinaryLabel = "binary" + var BooleanLabel = "boolean" + var IntegerLabel = "integer" + var NumberLabel = "number" + var ObjectLabel = "object" + var SchemaId = "https://devniel93.io/openapi-changes/schema" + var SchemaSource = "https://json-schema.org/draft/2020-12/schema" + var StringLabel = "string" + func AreValuesCorrectlyTyped(valType string, values interface{}) map[string]string + func BuildPath(basePath string, segs []string) string + func CheckEnumForDuplicates(seq []*yaml.Node) []*yaml.Node + func CheckForMergeNodes(node *yaml.Node) + func CheckPathOverlap(pathA, pathB, sep string) string + func ConvertComponentIdIntoFriendlyPathSearch(id string) (string, string) + func ConvertComponentIdIntoPath(id string) (string, string) + func ConvertInterfaceArrayToStringArray(raw interface{}) []string + func ConvertInterfaceIntoStringMap(context interface{}) map[string]string + func ConvertInterfaceToStringArray(raw interface{}) []string + func ConvertYAMLtoJSON(yamlData []byte) ([]byte, error) + func CreateBoolNode(str string) *yaml.Node + func CreateEmptyMapNode() *yaml.Node + func CreateEmptySequenceNode() *yaml.Node + func CreateFloatNode(str string) *yaml.Node + func CreateIntNode(str string) *yaml.Node + func CreateRefNode(ref string) *yaml.Node + func CreateStringNode(str string) *yaml.Node + func CreateYamlNode(a any) *yaml.Node + func DetermineWhitespaceLength(input string) int + func ExtractValueFromInterfaceMap(name string, raw interface{}) interface + func FindFirstKeyNode(key string, nodes []*yaml.Node, depth int) (keyNode *yaml.Node, valueNode *yaml.Node) + func FindKeyNode(key string, nodes []*yaml.Node) (keyNode *yaml.Node, valueNode *yaml.Node) + func FindKeyNodeFull(key string, nodes []*yaml.Node) (keyNode *yaml.Node, labelNode *yaml.Node, valueNode *yaml.Node) + func FindKeyNodeFullTop(key string, nodes []*yaml.Node) (keyNode *yaml.Node, labelNode *yaml.Node, valueNode *yaml.Node) + func FindKeyNodeTop(key string, nodes []*yaml.Node) (keyNode *yaml.Node, valueNode *yaml.Node) + func FindLastChildNode(node *yaml.Node) *yaml.Node + func FindLastChildNodeWithLevel(node *yaml.Node, level int) *yaml.Node + func FindNodes(yamlData []byte, jsonPath string) ([]*yaml.Node, error) + func FindNodesWithoutDeserializing(node *yaml.Node, jsonPath string) ([]*yaml.Node, error) + func FixContext(context string) string + func IsHttpVerb(verb string) bool + func IsJSON(testString string) bool + func IsNodeAlias(node *yaml.Node) (*yaml.Node, bool) + func IsNodeArray(node *yaml.Node) bool + func IsNodeBoolValue(node *yaml.Node) bool + func IsNodeFloatValue(node *yaml.Node) bool + func IsNodeIntValue(node *yaml.Node) bool + func IsNodeMap(node *yaml.Node) bool + func IsNodeNumberValue(node *yaml.Node) bool + func IsNodePolyMorphic(node *yaml.Node) bool + func IsNodeRefValue(node *yaml.Node) (bool, *yaml.Node, string) + func IsNodeStringValue(node *yaml.Node) bool + func IsYAML(testString string) bool + func MakeTagReadable(node *yaml.Node) string + func NodeAlias(node *yaml.Node) *yaml.Node + func RenderCodeSnippet(startNode *yaml.Node, specData []string, before, after int) string + func ReplaceWindowsDriveWithLinuxPath(path string) string + func UnwrapErrors(err error) []error + type Case int8 + const AsyncApi + const CamelCase + const KebabCase + const OpenApi2 + const OpenApi3 + const PascalCase + const RegularCase + const ScreamingKebabCase + const ScreamingSnakeCase + const SnakeCase + const UnknownCase + func DetectCase(input string) Case + type ExtensionNode struct + Key *yaml.Node + Value *yaml.Node + func FindExtensionNodes(nodes []*yaml.Node) []*ExtensionNode + type KeyNodeResult struct + KeyNode *yaml.Node + Parent *yaml.Node + Path []yaml.Node + ValueNode *yaml.Node + type KeyNodeSearch struct + AllowExtensions bool + Ignore []string + Key string + Results []*KeyNodeResult + type RemoteURLHandler = func(url string) (*http.Response, error)