mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Adding more test coverage
Fixing some outdated code as well. Signed-off-by: Dave Shanley <dave@quobix.com> Cleaning up more coverage issues Signed-off-by: Dave Shanley <dave@quobix.com> More test coverage updates. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -505,7 +505,7 @@ func ConvertYAMLtoJSON(yamlData []byte) ([]byte, error) {
|
||||
}
|
||||
|
||||
// ConvertYAMLtoJSONPretty will do exactly what you think it will. It will deserialize YAML into serialized JSON.
|
||||
// However, this version will a apply prefix/indentation to the JSON.
|
||||
// However, this version will apply prefix/indentation to the JSON.
|
||||
func ConvertYAMLtoJSONPretty(yamlData []byte, prefix string, indent string) ([]byte, error) {
|
||||
var decodedYaml map[string]interface{}
|
||||
err := yaml.Unmarshal(yamlData, &decodedYaml)
|
||||
|
||||
Reference in New Issue
Block a user