func SortedKeysForMap(m *yaml.Node) []string {
	keys := make([]string, 0)
	if m.Kind == yaml.MappingNode {
		for i := 0; i < len(m.Content); i += 2 {
			keys = append(keys, m.Content[i].Value)
		}
	}
	sort.Strings(keys)
	return keys
}
SortedKeysForMap returns the sorted keys of a yamlv2.MapSlice.
package compiler
import (
	"fmt"
	"regexp"
	"sort"
	"strconv"
	"github.com/googleapis/gnostic/jsonschema"
	"gopkg.in/yaml.v3"
)
func UnpackMap(in *yaml.Node) (*yaml.Node, bool) {
	if in == nil {
		return nil, false
	}
	return in, true
}