Skip to content

Commit 8a1513d

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 8a1513d

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,13 +2479,12 @@ 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
24852483
properties:
24862484
fields:
24872485
type: array
24882486
description: A list of fields for querying, filtering and faceting
2487+
minItems: 1
24892488
example:
24902489
- name: company_name
24912490
type: string

0 commit comments

Comments
 (0)