Files
notifications-api/app/webauthn/webauthn_schema.py
Kenneth Kehl 1ecb747c6d reformat
2023-08-29 14:54:30 -07:00

24 lines
822 B
Python

post_create_webauthn_credential_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST webauthn_credential schema",
"type": "object",
"properties": {
"name": {"type": "string", "minLength": 1},
"credential_data": {"type": "string", "minLength": 1},
"registration_response": {"type": "string", "minLength": 1},
},
"required": ["name", "credential_data", "registration_response"],
"additionalProperties": False,
}
post_update_webauthn_credential_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST update webauthn_credential schema",
"type": "object",
"properties": {
"name": {"type": "string", "minLength": 1},
},
"required": ["name"],
"additionalProperties": False,
}