{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UserRequest",
  "title": "UserRequest",
  "type": "object",
  "required": [
    "username",
    "email"
  ],
  "properties": {
    "username": {
      "type": "string",
      "minLength": 3,
      "maxLength": 32,
      "description": "The user's username."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The user's email address."
    },
    "restricted": {
      "type": "boolean",
      "description": "Whether the user should have restricted access."
    }
  }
}