Skip to content

Commit

Permalink
switch timestamp schema to a single type for simple deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Jan 9, 2024
1 parent 1596f6b commit 7c90169
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions assets/configured-youtube-boombox-tracks.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@
"description": "A list of tracks for the Configured Youtube Boombox mod to download",
"$defs": {
"timestamp": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^\\d{1,2}(?::\\d{1,2}){0,2}(?:\\.\\d+)?$"
}
]
"type": "string",
"pattern": "^\\d{1,2}(?::\\d{1,2}){0,2}(?:\\.\\d+)?$"
}
},
"type": "object",
Expand Down

0 comments on commit 7c90169

Please sign in to comment.