mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
We want to replace the value `None` for service.allowed_broadcast_provider with the value of "all". As a first step, we need to allow both values. Once notifications-admin has been changed to pass through "all" and all the data in the database has been updated, we can update the code to stop supporting both values.
13 lines
535 B
Python
13 lines
535 B
Python
service_broadcast_settings_schema = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "Set a services broadcast settings",
|
|
"type": "object",
|
|
"title": "Set a services broadcast settings",
|
|
"properties": {
|
|
"broadcast_channel": {"enum": ["test", "severe"]},
|
|
"service_mode": {"enum": ["training", "live"]},
|
|
"provider_restriction": {"enum": [None, "three", "o2", "vodafone", "ee", "all"]}
|
|
},
|
|
"required": ["broadcast_channel", "service_mode", "provider_restriction"]
|
|
}
|