Skip to content

Commit 2d0e425

Browse files
committed
fix: update openapi_spec_downgrader for new version of oasdiff/yaml
The API has changed for the Unmarshal method.
1 parent 7387385 commit 2d0e425

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/openapi_spec_downgrader

tools/openapi_spec_downgrader/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func run(cmd *cobra.Command, args []string) {
5353
log.Fatalln(err)
5454
}
5555
doc := map[string]any{}
56-
err = yaml.Unmarshal(contents, &doc)
56+
_, err = yaml.Unmarshal(contents, &doc, yaml.DecodeOpts{})
5757
if err != nil {
5858
log.Fatalln(err)
5959
}

0 commit comments

Comments
 (0)