Skip to content

Commit 196ae5a

Browse files
authored
Timestamp schema pattern should allow Z instead of zero offset (#3420)
`2024-11-29T12:32:11.444600549+01:00` is accepted, `2024-11-29T11:32:11.444600549Z` is not. But it should, see [1], it's a valid format. tmt ingests the values, but does not parse them, just passes them around, so changing the pattern should be enough to accept this format. [1] fedora-java/javapackages-validator#176
1 parent cf2d833 commit 196ae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmt/schemas/common.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,4 +502,4 @@ definitions:
502502
timestamp:
503503
type: string
504504
# yamllint disable-line rule:line-length
505-
pattern: "^\\d{2,}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+\\+\\d{2}:\\d{2}$"
505+
pattern: "^\\d{2,}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(?:(?:\\+\\d{2}:\\d{2})|Z)$"

0 commit comments

Comments
 (0)