Skip to content

Commit

Permalink
added duration format to support ISO8601 strings (Azure#21711)
Browse files Browse the repository at this point in the history
  • Loading branch information
brrusino authored and kayousef committed Dec 21, 2022
1 parent 9a14157 commit 97f7908
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
"duration": {
"type": "string",
"description": "ISO8601 formatted string that represents a duration.",
"pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$"
"pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$",
"format": "duration"
}
},
"required": [
Expand Down Expand Up @@ -265,7 +266,8 @@
"duration": {
"type": "string",
"description": "ISO8601 formatted string that represents a duration.",
"pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$"
"pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$",
"format": "duration"
},
"parameters": {
"description": "List of key value pairs.",
Expand Down

0 comments on commit 97f7908

Please sign in to comment.