Files
letro-authentication-service/policies/schema/register_input.json
2025-02-17 10:18:11 +01:00

45 lines
953 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "RegisterInput",
"description": "Input for the user registration policy.",
"type": "object",
"required": [
"registration_method",
"requester",
"username"
],
"properties": {
"registration_method": {
"$ref": "#/definitions/RegistrationMethod"
},
"username": {
"type": "string"
},
"email": {
"type": "string"
},
"requester": {
"$ref": "#/definitions/Requester"
}
},
"definitions": {
"RegistrationMethod": {
"type": "string",
"enum": [
"password",
"upstream-oauth2"
]
},
"Requester": {
"description": "Identity of the requester",
"type": "object",
"properties": {
"ip_address": {
"description": "IP address of the entity making the request",
"type": "string",
"format": "ip"
}
}
}
}
}