-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from NOAA-GSL/chore/idsse-342/dsd-data-request
DAS web message schemas
- Loading branch information
Showing
9 changed files
with
323 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
python/idsse_common/idsse/common/schema/das_web_request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"DasWebRequest": { | ||
"description": "Mechanism for defining DAS data request via the web api", | ||
"type": "object", | ||
"properties": { | ||
"issueDt": {"$ref": "timing.json#/TimeString"}, | ||
"valids": {"$ref": "timing.json#/TimeList"}, | ||
"dataRequest": { | ||
"type": "string" | ||
}, | ||
"parts": { | ||
"type": "array", | ||
"items": {"$ref": "translated_data.json#/SingleTranslatedData"}, | ||
"minItems": 1 | ||
}, | ||
"bbox": { | ||
"type": "object", | ||
"properties": { | ||
"botLeft": {"type": "array", "items": {"type": "integer"}, "minItems": 2, "maxItems": 2}, | ||
"topRight": {"type": "array", "items": {"type": "integer"}, "minItems": 2, "maxItems": 2} | ||
}, | ||
"required": [ | ||
"botLeft", | ||
"topRight" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"issueDt", | ||
"valids", | ||
"dataRequest", | ||
"parts", | ||
"bbox" | ||
] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
python/idsse_common/idsse/common/schema/das_web_request_schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"description": "Mechanism for making DAS web request", | ||
"allOf": [ | ||
{"$ref": "das_web_request.json#/DasWebRequest"} | ||
] | ||
} |
29 changes: 29 additions & 0 deletions
29
python/idsse_common/idsse/common/schema/das_web_response_schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"description": "Mechanism for making DAS web request", | ||
"allOf": [ | ||
{"$ref": "das_web_request.json#/DasWebRequest"} | ||
], | ||
"properties": { | ||
"data": { | ||
"description": "The keys in data are either a string datetime, 'scale', or 'offset' (nothing else allowed)", | ||
"type": "object", | ||
"patternProperties": { | ||
"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:\\.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$": { | ||
"type": "array", | ||
"items": { | ||
"type": "array", | ||
"items": { | ||
"type": "number" | ||
} | ||
} | ||
}, | ||
"scale": {"type": "number"}, | ||
"offset": {"type": "number"}, | ||
"(?=^((?!((^|, )(scale|offset))+$).)*$)(?=[^0-9.+-:TZ])": {"not": {}} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"data" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,8 @@ | |
"items": {"$ref": "risk_results.json#/RiskResults"}, | ||
"minItems": 1 | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"riskResults" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
python/idsse_common/idsse/common/schema/translated_data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.