This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/COR-1278-schema-self_test_overall (#4535)
* feat: added schema for selftest_overall * fix: changed the naming * feat(infection-radar-data): Update the schema based on requirement for date ranges. * feat(self-test-schema): Adjust the schema property based on discussion on COR-1262 ticket. Co-authored-by: VWSCoronaDashboard21 <[email protected]> Co-authored-by: VWSCoronaDashboard28 <[email protected]>
- Loading branch information
1 parent
6ed94de
commit bcff667
Showing
3 changed files
with
56 additions
and
0 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
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,40 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "nl_self_test_overall", | ||
"type": "object", | ||
"properties": { | ||
"values": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/value" | ||
} | ||
}, | ||
"last_value": { | ||
"$ref": "#/definitions/value" | ||
} | ||
}, | ||
"required": ["values", "last_value"], | ||
"additionalProperties": false, | ||
"definitions": { | ||
"value": { | ||
"title": "nl_self_test_overall_value", | ||
"type": "object", | ||
"properties": { | ||
"infected_percentage": { | ||
"type": ["number", "null"] | ||
}, | ||
"date_range_start_unix": { | ||
"type": "integer" | ||
}, | ||
"date_range_end_unix": { | ||
"type": "integer" | ||
}, | ||
"date_of_insertion_unix": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": ["infected_percentage", "date_range_start_unix", "date_range_end_unix", "date_of_insertion_unix"], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
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