Merge branch 'fix/input-validation' into fix/fable-mediums
This commit is contained in:
commit
b2f447f875
1 changed files with 902 additions and 76 deletions
|
|
@ -99,9 +99,19 @@ paths:
|
|||
type: object
|
||||
required: [name, domain]
|
||||
properties:
|
||||
name: {type: string}
|
||||
domain: {type: string}
|
||||
title: {type: string}
|
||||
name:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 30
|
||||
pattern: '^[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*$'
|
||||
description: Local part of the list address, stored lowercase. Letters, digits, '.', '_' and '-' only, no dot at either end or two in a row.
|
||||
domain:
|
||||
type: string
|
||||
description: ASCII host name (labels of 1 to 63 letters, digits and hyphens).
|
||||
title:
|
||||
type: string
|
||||
maxLength: 200
|
||||
description: A single line without control characters. Defaults to the name.
|
||||
responses:
|
||||
'201':
|
||||
description: Created
|
||||
|
|
@ -131,7 +141,7 @@ paths:
|
|||
schema:
|
||||
type: object
|
||||
properties:
|
||||
title: {type: string}
|
||||
title: {type: string, minLength: 1, maxLength: 200, description: A single line without control characters.}
|
||||
post_policy: {type: string, enum: [members, moderated]}
|
||||
join_policy: {type: string, enum: [open, closed]}
|
||||
archive_policy: {type: string, enum: [public, private, off]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue