Skip to content

Unable to deploy email template; 'verify_email_by_code' #303

@Jelle-vz

Description

@Jelle-vz

Description

When adding the email template for 'verify_email_by_code' to the deployment directory, the pipleline fails, saying:

2021-01-06T13:04:19.197Z - debug: Error: Schema validation failed loading [
    {
        "keyword": "enum",
        "dataPath": ".emailTemplates[6].template",
        "schemaPath": "#/properties/emailTemplates/items/properties/template/enum",
        "params": {
            "allowedValues": [
                "verify_email",
                "reset_email",
                "welcome_email",
                "blocked_account",
                "stolen_credentials",
                "enrollment_email",
                "change_password",
                "password_reset",
                "mfa_oob_code"
            ]
        },
        "message": "should be equal to one of the allowed values"
    }
]

Reproduction

  • Add email template verify_email_by_code.html & verify_email_by_code.json to emails directory
  • deploy to a tenant using the auth0-deploy-cli (using v6.0.0)
  • Check debug log.

Environment

  • "auth0-deploy-cli": "^6.0.0"
  • Gitlab deployment pipeline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions