According to the spec, the sub-seconds are optional in any field that uses a timestamp. The format is " YYYY-MM-DDTHH:mm:ss[.s+]Z where the “s+” represents 1 or more sub-second values. The brackets denote that sub-second precision is optional, and that if no digits are provided, the decimal place MUST NOT be present."
Therefore, the code needs to accommodate that for validation and serialization.
According to the spec, the sub-seconds are optional in any field that uses a timestamp. The format is " YYYY-MM-DDTHH:mm:ss[.s+]Z where the “s+” represents 1 or more sub-second values. The brackets denote that sub-second precision is optional, and that if no digits are provided, the decimal place MUST NOT be present."
Therefore, the code needs to accommodate that for validation and serialization.