Add Regex matching

This commit is contained in:
Marco Realacci 2022-11-29 16:07:42 +01:00
parent 758be58b31
commit df5b3fdda8
3 changed files with 29 additions and 2 deletions

View file

@ -1064,8 +1064,8 @@ components:
$ref: "#/components/schemas/comment"
comment:
minLength: 5
maxLength: 100 #todo think about it
pattern: ".*" #everything except newlines
maxLength: 255
pattern: ".*" #everything except newlines ^[*]{5, 255}$
type: string
example: "What a lovely picture! 😊"
description: The comment's text