Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-openapi/swag
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.1
Choose a base ref
...
head repository: go-openapi/swag
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.22.2
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 18, 2022

  1. Copy the full SHA
    bf6952f View commit details
Showing with 2 additions and 0 deletions.
  1. +2 −0 yaml.go
2 changes: 2 additions & 0 deletions yaml.go
Original file line number Diff line number Diff line change
@@ -142,6 +142,8 @@ func yamlScalar(node *yaml.Node) (interface{}, error) {
return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting float content: %w", node.Value, err)
}
return f, nil
case "yaml.org,2002:timestamp":
return node.Value, nil
case "tag:yaml.org,2002:null":
return nil, nil
default: