mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 23:32:27 -05:00
@@ -41,7 +41,7 @@ get_notification_response = {
|
||||
"line_5": {"type": ["string", "null"]},
|
||||
"line_6": {"type": ["string", "null"]},
|
||||
"postcode": {"type": ["string", "null"]},
|
||||
"type": {"enum": [e.value for e in TemplateType]},
|
||||
"type": {"enum": list(TemplateType)},
|
||||
"status": {"type": "string"},
|
||||
"template": template,
|
||||
"body": {"type": "string"},
|
||||
@@ -82,11 +82,11 @@ get_notifications_request = {
|
||||
"reference": {"type": "string"},
|
||||
"status": {
|
||||
"type": "array",
|
||||
"items": {"enum": [e.value for e in NotificationStatus]},
|
||||
"items": {"enum": list(NotificationStatus)},
|
||||
},
|
||||
"template_type": {
|
||||
"type": "array",
|
||||
"items": {"enum": [e.value for e in TemplateType]},
|
||||
"items": {"enum": list(TemplateType)},
|
||||
},
|
||||
"include_jobs": {"enum": ["true", "True"]},
|
||||
"older_than": uuid,
|
||||
|
||||
@@ -17,7 +17,7 @@ get_template_by_id_response = {
|
||||
"title": "reponse v2/template",
|
||||
"properties": {
|
||||
"id": uuid,
|
||||
"type": {"enum": [e.value for e in TemplateType]},
|
||||
"type": {"enum": list(TemplateType)},
|
||||
"created_at": {
|
||||
"format": "date-time",
|
||||
"type": "string",
|
||||
@@ -62,7 +62,7 @@ post_template_preview_response = {
|
||||
"title": "reponse v2/template/{id}/preview",
|
||||
"properties": {
|
||||
"id": uuid,
|
||||
"type": {"enum": [e.value for e in TemplateType]},
|
||||
"type": {"enum": list(TemplateType)},
|
||||
"version": {"type": "integer"},
|
||||
"body": {"type": "string"},
|
||||
"subject": {"type": ["string", "null"]},
|
||||
|
||||
@@ -5,7 +5,7 @@ get_all_template_request = {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "request schema for parameters allowed when getting all templates",
|
||||
"type": "object",
|
||||
"properties": {"type": {"enum": [e.value for e in TemplateType]}},
|
||||
"properties": {"type": {"enum": list(TemplateType)}},
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user