Move comments regex in helper file

This commit is contained in:
Marco Realacci 2022-12-22 18:08:03 +01:00
parent 58020420c3
commit 783e2c044d
3 changed files with 11 additions and 13 deletions

View file

@ -1080,9 +1080,9 @@ components:
comment:
$ref: "#/components/schemas/comment"
comment:
minLength: 5
minLength: 1
maxLength: 255
pattern: ".*" #everything except newlines ^[*]{5, 255}$
pattern: "^(.){1,255}$" # everything except newlines
type: string
example: "What a lovely picture! 😊"
description: The comment's text
@ -1092,7 +1092,7 @@ components:
format: binary
minLength: 1
maxLength: 10485760 # 10 MB
pattern: "((.|\n)*)" # todo: review. Btw this means "any string"
pattern: "((.|\n)*)" # this accepts everything
generic_response:
type: object