mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
* Added unit tests for the get_complaint_count endpoint * Updated the schema to use 'date' format instead of 'datetime' * Updated the complaint endpoint to convert start_date and end_date to be dates instead of strings
12 lines
368 B
Python
12 lines
368 B
Python
|
|
complaint_count_request = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "complaint count request schema",
|
|
"type": "object",
|
|
"title": "Complaint count request",
|
|
"properties": {
|
|
"start_date": {"type": ["string", "null"], "format": "date"},
|
|
"end_date": {"type": ["string", "null"], "format": "date"},
|
|
}
|
|
}
|