Skip to content

Commit

Permalink
Update jsonToYAML
Browse files Browse the repository at this point in the history
  • Loading branch information
blp1526 committed Dec 20, 2018
1 parent e299f72 commit d62bf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goagen/gen_swagger/generator.go
Expand Up @@ -122,7 +122,7 @@ func (g *Generator) Cleanup() {

func jsonToYAML(rawJSON []byte) ([]byte, error) {
var yamlSource interface{}
if err := json.Unmarshal(rawJSON, &yamlSource); err != nil {
if err := yaml.Unmarshal(rawJSON, &yamlSource); err != nil {
return nil, err
}

Expand Down

0 comments on commit d62bf94

Please sign in to comment.