[dd-admin] Fix email schemas in certain API endpoints

Dot character was not being properly escaped, we switch to using
bracket expressions to avoid possible future issues.
mejoras_instalacion
Evilham 2022-10-23 19:45:40 +02:00
parent d2fb24379a
commit 895a20abba
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
4 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ name:
email:
type: string
required: true
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+[.][a-zA-Z0-9-.]+$
inbound_host:
type: string
required: true
@ -50,4 +50,4 @@ outbound_ssl_mode:
default: ssl
outbound_user:
type: string
required: true
required: true

View File

@ -29,7 +29,7 @@ mails:
email:
type: string
required: true
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+[.][a-zA-Z0-9-.]+$
inbound_host:
type: string
required: true
@ -53,4 +53,4 @@ mails:
default: ssl
outbound_user:
type: string
required: true
required: true

View File

@ -29,7 +29,7 @@ last:
email:
required: true
type: string
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+[.][a-zA-Z0-9-.]+$
password:
required: true
type: string

View File

@ -26,7 +26,7 @@ last:
email:
required: false
type: string
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
regex: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+[.][a-zA-Z0-9-.]+$
password:
required: false
type: string