Next in thread →
Next in month →
Re: [tosca] Clarification required for "!!timestamp" type in YAML
On Sun, Oct 6, 2019 at 8:14 PM Chris Lauwers <> wrote: These are good comments, but unfortunately I think thatâs just how YAML works: parsers will try their best to determine the intended type of a value, and theyâre not always right. If that's the case, I do recommend the following: We explicitly state that we accept both the timestamp type and strings. I think we should change all the examples in the spec to use either "!!timestamp" or to wrap it in strings, and that it should be the "good practice" that we decide to encourage. As for the good practice, I think it should be string: so, always wrap in quotes. This ensures that the TOSCA spec is the right one for timestamps and that we're not at the mercy of another spec, YAML. E.g. if the string is stored in a database, etc., we can refer to the TOSCA spec and not have to add another one.
Next in thread →
Next in month →