Skip to content

Commit

Permalink
Add pattern to description (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
acka47 committed May 6, 2022
1 parent a67de3a commit 1762d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draft/schemas/duration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$id": "https://w3id.org/kim/amb/draft/schemas/duration.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Duration",
"description": "The duration of the item (video, audio recording, etc.) in ISO 8601 duration format.",
"description": "The duration of the item (video, audio recording, etc.) in ISO 8601 duration format: P[n]Y[n]M[n]DT[n]H[n]M[n]S",
"type": "string",
"pattern": "^(-?)P(?=\\d|T\\d)(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)([DW]))?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$"
}

0 comments on commit 1762d63

Please sign in to comment.