Skip to content

Commit

Permalink
update movie/screenshot schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Jun 18, 2024
1 parent 40105e3 commit e39c185
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
3 changes: 2 additions & 1 deletion docroot/schema/event_layers.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
},
"event_type": {
"type": "string",
"pattern": "^[A-Z0-9]{2}"
"pattern": "^[A-Z0-9]{2}$",
"maxLength": 2
},
"event_instances": {
"type": "array",
Expand Down
11 changes: 5 additions & 6 deletions docroot/schema/post_movie.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
"title": "Post Movie Parameters",
"description": "Information used to generate a movie via helioviewer.org",
"type": "object",
"additionalProperties": false,
"required": ["startTime", "endTime", "layers"],
"properties": {
"required": ["startTime", "endTime", "layers"],
"startTime": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"endTime": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"layers": {
"type": "string",
Expand All @@ -26,7 +25,7 @@
"imageScale": { "type": "number" },
"format": {
"type": "string",
"enum": ["mp4, webm"]
"enum": ["mp4", "webm"]
},
"frameRate": { "type": "number" },
"maxFrames": { "type": "number" },
Expand Down Expand Up @@ -58,7 +57,7 @@
"followViewport": { "type": "number" },
"reqObservationDate": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
}
}
}
5 changes: 2 additions & 3 deletions docroot/schema/post_screenshot.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"title": "Post Screenshot Parameters",
"description": "Information used to generate a screenshot via helioviewer.org",
"type": "object",
"additionalProperties": false,
"required": ["date", "imageScale", "layers"],
"properties": {
"required": ["date", "imageScale", "layers"],
"date": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"imageScale": { "type": "number" },
"layers": {
Expand Down
3 changes: 2 additions & 1 deletion management/schema/event_layers.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
},
"event_type": {
"type": "string",
"pattern": "^[A-Z0-9]{2}"
"pattern": "^[A-Z0-9]{2}$",
"maxLength": 2
},
"event_instances": {
"type": "array",
Expand Down
11 changes: 5 additions & 6 deletions management/schema/post_movie.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
"title": "Post Movie Parameters",
"description": "Information used to generate a movie via helioviewer.org",
"type": "object",
"additionalProperties": false,
"required": ["startTime", "endTime", "layers"],
"properties": {
"required": ["startTime", "endTime", "layers"],
"startTime": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"endTime": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"layers": {
"type": "string",
Expand All @@ -26,7 +25,7 @@
"imageScale": { "type": "number" },
"format": {
"type": "string",
"enum": ["mp4, webm"]
"enum": ["mp4", "webm"]
},
"frameRate": { "type": "number" },
"maxFrames": { "type": "number" },
Expand Down Expand Up @@ -58,7 +57,7 @@
"followViewport": { "type": "number" },
"reqObservationDate": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
}
}
}
5 changes: 2 additions & 3 deletions management/schema/post_screenshot.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"title": "Post Screenshot Parameters",
"description": "Information used to generate a screenshot via helioviewer.org",
"type": "object",
"additionalProperties": false,
"required": ["date", "imageScale", "layers"],
"properties": {
"required": ["date", "imageScale", "layers"],
"date": {
"type": "string",
"pattern": "\\d{4}-\\d{2}\\d{2}T\\d{2}:\\d{2}:\\d{2}Z"
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"
},
"imageScale": { "type": "number" },
"layers": {
Expand Down

0 comments on commit e39c185

Please sign in to comment.