Skip to content

Commit

Permalink
feat: Add validation for orbit state vectors with date-time strings
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jul 22, 2024
1 parent db83161 commit 8d3314a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@
"sat:orbit_state_vectors": {
"type": "object",
"patternProperties": {
"^.*$": {
"$comment": "The key is a date-time string, and the value is an array of numbers.",
"^([\\+-]?\\d{4}(?!\\d{2}\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$": {
"type": "array",
"items": {
"type": "number"
Expand Down

0 comments on commit 8d3314a

Please sign in to comment.