mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 15:52:21 -05:00
36 lines
985 B
Python
36 lines
985 B
Python
|
|
post_verify_code_schema = {
|
||
|
|
'$schema': 'http://json-schema.org/draft-04/schema#',
|
||
|
|
'description': 'POST schema for verifying a 2fa code',
|
||
|
|
'type': 'object',
|
||
|
|
'properties': {
|
||
|
|
'code': {'type': 'string'},
|
||
|
|
'code_type': {'type': 'string'},
|
||
|
|
},
|
||
|
|
'required': ['code', 'code_type']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
post_send_user_email_code_schema = {
|
||
|
|
'$schema': 'http://json-schema.org/draft-04/schema#',
|
||
|
|
'description': 'POST schema for generating a 2fa email',
|
||
|
|
'type': 'object',
|
||
|
|
'properties': {
|
||
|
|
# doesn't need 'to' as we'll just grab user.email_address
|
||
|
|
'next': {'type': ['string', 'null']},
|
||
|
|
},
|
||
|
|
'required': [],
|
||
|
|
'additionalProperties': []
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
post_send_user_sms_code_schema = {
|
||
|
|
'$schema': 'http://json-schema.org/draft-04/schema#',
|
||
|
|
'description': 'POST schema for generating a 2fa email',
|
||
|
|
'type': 'object',
|
||
|
|
'properties': {
|
||
|
|
'to': {'type': ['string', 'null']},
|
||
|
|
},
|
||
|
|
'required': [],
|
||
|
|
'additionalProperties': []
|
||
|
|
}
|