Skip to content

Commit bf6952f

Browse files
committed
also support timestamp values
1 parent 3fa115d commit bf6952f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yaml.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ func yamlScalar(node *yaml.Node) (interface{}, error) {
142142
return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting float content: %w", node.Value, err)
143143
}
144144
return f, nil
145+
case "yaml.org,2002:timestamp":
146+
return node.Value, nil
145147
case "tag:yaml.org,2002:null":
146148
return nil, nil
147149
default:

0 commit comments

Comments
 (0)