Add limit on content field (comment request)

This commit is contained in:
2021-04-10 21:34:51 +02:00
parent 8223dd21bb
commit 0c8bcbd634
2 changed files with 14 additions and 4 deletions

View File

@@ -567,8 +567,10 @@ paths:
properties:
content:
type: string
minLength: 20
maxLength: 6000
example:
Lorem ipsum...
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Lorem ipsum...
responses:
201:
description: Return created Comment
@@ -613,6 +615,8 @@ paths:
properties:
content:
type: string
minLength: 20
maxLength: 6000
example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
responses:
@@ -647,6 +651,8 @@ paths:
properties:
content:
type: string
minLength: 20
maxLength: 6000
example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
responses:
@@ -799,8 +805,10 @@ paths:
properties:
content:
type: string
minLength: 20
maxLength: 6000
example:
Lorem ipsum...
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
responses:
201:
description: Return created comment