The yamlutil
package provides a collection of Go utilities for YAML.
GetNodeJsonSchemaPath()
function which returns a *yaml.Node
for a pre-parsed JSON Schema pointer path. The primary use case is to get line numbers of linters using JSON Schema pointer to access a YAML file, e.g. OpenAPI specification files.ReadFileAsJson()
function which will read a YAML file and convert it to JSON using github.com/ghodss/yaml
.$ go get github.com/grokify/yamlutil
Features, Issues, and Pull Requests are always welcome.
To contribute:
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Please report issues and feature requests on Github.