Skip to content

Commit 9f9114c

Browse files
committed
fix: only require at least 1 field to be present in a collection update
The collection update endpoint only requires that at least one field is present - "fields" is not strictly required (e.g. for metadata updates).
1 parent 05c5e35 commit 9f9114c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openapi.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,9 +2479,8 @@ components:
24792479
description: >
24802480
Optional details about the collection, e.g., when it was created, who created it etc.
24812481
CollectionUpdateSchema:
2482-
required:
2483-
- fields
24842482
type: object
2483+
minProperties: 1
24852484
properties:
24862485
fields:
24872486
type: array

0 commit comments

Comments
 (0)