{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/viridi-parente/main/json-schema/viridi-parente-user-password-policy-schema.json",
  "title": "UserPasswordPolicy",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viridi-parente-auth-controller-api-openapi.yml#/components/schemas/UserPasswordPolicy",
  "properties": {
    "minimumLength": {
      "type": "integer",
      "format": "int32",
      "description": "Minimum number of symbols in the password."
    },
    "maximumLength": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of symbols in the password."
    },
    "minimumUppercaseLetters": {
      "type": "integer",
      "format": "int32",
      "description": "Minimum number of uppercase letters in the password."
    },
    "minimumLowercaseLetters": {
      "type": "integer",
      "format": "int32",
      "description": "Minimum number of lowercase letters in the password."
    },
    "minimumDigits": {
      "type": "integer",
      "format": "int32",
      "description": "Minimum number of digits in the password."
    },
    "minimumSpecialCharacters": {
      "type": "integer",
      "format": "int32",
      "description": "Minimum number of special in the password."
    },
    "allowWhitespaces": {
      "type": "boolean",
      "description": "Allow whitespaces"
    },
    "forceUserToResetPasswordIfNotValid": {
      "type": "boolean",
      "description": "Force user to update password if existing one does not pass validation"
    },
    "passwordExpirationPeriodDays": {
      "type": "integer",
      "format": "int32",
      "description": "Password expiration period (days). Force expiration of the password."
    },
    "passwordReuseFrequencyDays": {
      "type": "integer",
      "format": "int32",
      "description": "Password reuse frequency (days). Disallow to use the same password for the defined number of days"
    }
  }
}