mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
Added a schema to check that the start_date and end_date arguments are both in the date format.
11 lines
364 B
Python
11 lines
364 B
Python
platform_stats_request = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "platform stats request schema",
|
|
"type": "object",
|
|
"title": "Platform stats request",
|
|
"properties": {
|
|
"start_date": {"type": ["string", "null"], "format": "date"},
|
|
"end_date": {"type": ["string", "null"], "format": "date"},
|
|
}
|
|
}
|