Skip to content

Commit

Permalink
also support timestamp values
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Aug 18, 2022
1 parent 3fa115d commit bf6952f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bf6952f

Please sign in to comment.