mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-20 00:30:41 -04:00
The big breaking change for our code (not mentioned in the changelog) is that the built-in validator for the `date-time` format now requires the `rfc3339-validator` package instead of the `strict-rfc3339` package. This updates the requirements file to use `rfc3339-validator`. Without this change, wrong `date-time` formats would always silently pass validation.
11 lines
348 B
Python
11 lines
348 B
Python
post_letter_branding_schema = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST schema for creating or updating a letter brand",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": ["string", "null"]},
|
|
"filename": {"type": ["string", "null"]},
|
|
},
|
|
"required": ["name", "filename"]
|
|
}
|