Skip to content

Commit 7d15750

Browse files
committed
Fix multipart property types
1 parent 164a984 commit 7d15750

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Subscription/Controller/SubscriberImportController.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ public function __construct(
5353
new OA\Property(
5454
property: 'list_id',
5555
description: 'List id to add imported subscribers to',
56-
type: 'integer',
57-
default: null
56+
type: 'string',
57+
default: null,
58+
pattern: "^\\d+$"
5859
),
5960
new OA\Property(
6061
property: 'update_existing',
6162
description: 'Weather to update existing subscribers or not',
62-
type: 'boolean',
63-
default: false
63+
type: 'string',
64+
default: '0',
65+
enum: ['0', '1']
6466
)
6567
],
6668
type: 'object'

0 commit comments

Comments
 (0)