2021-05-10 22:09:07 +01:00
|
|
|
post_create_webauthn_credential_schema = {
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
|
"description": "POST webauthn_credential schema",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2021-05-12 15:34:37 +01:00
|
|
|
"name": {"type": "string", "minLength": 1},
|
|
|
|
|
"credential_data": {"type": "string", "minLength": 1},
|
|
|
|
|
"registration_response": {"type": "string", "minLength": 1},
|
2021-05-10 22:09:07 +01:00
|
|
|
},
|
|
|
|
|
"required": ["name", "credential_data", "registration_response"],
|
2023-08-29 14:54:30 -07:00
|
|
|
"additionalProperties": False,
|
2021-05-10 22:09:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_update_webauthn_credential_schema = {
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
|
"description": "POST update webauthn_credential schema",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2021-05-12 15:34:37 +01:00
|
|
|
"name": {"type": "string", "minLength": 1},
|
2021-05-10 22:09:07 +01:00
|
|
|
},
|
|
|
|
|
"required": ["name"],
|
2023-08-29 14:54:30 -07:00
|
|
|
"additionalProperties": False,
|
2021-05-10 22:09:07 +01:00
|
|
|
}
|