[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: email:
type: string type: string
required: true 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: inbound_host:
type: string type: string
required: true required: true
@ -50,4 +50,4 @@ outbound_ssl_mode:
default: ssl default: ssl
outbound_user: outbound_user:
type: string type: string
required: true required: true

View File

@ -29,7 +29,7 @@ mails:
email: email:
type: string type: string
required: true 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: inbound_host:
type: string type: string
required: true required: true
@ -53,4 +53,4 @@ mails:
default: ssl default: ssl
outbound_user: outbound_user:
type: string type: string
required: true required: true

View File

@ -29,7 +29,7 @@ last:
email: email:
required: true required: true
type: string 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: password:
required: true required: true
type: string type: string

View File

@ -26,7 +26,7 @@ last:
email: email:
required: false required: false
type: string 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: password:
required: false required: false
type: string type: string