Skip to content

Commit 76d1b27

Browse files
authored
Merge pull request #109 from haydenhoang/fix
Use `oneOf` instead of `anyOf` & correct schema for curation set/synonym set retrieve one
2 parents 9efb818 + f57cef5 commit 76d1b27

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

openapi.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ paths:
495495
content:
496496
application/json:
497497
schema:
498-
$ref: "#/components/schemas/SynonymSetRetrieveSchema"
498+
$ref: "#/components/schemas/SynonymSetSchema"
499499
"404":
500500
description: Synonym set not found
501501
content:
@@ -735,7 +735,7 @@ paths:
735735
content:
736736
application/json:
737737
schema:
738-
$ref: "#/components/schemas/CurationSetRetrieveSchema"
738+
$ref: "#/components/schemas/CurationSetSchema"
739739
"404":
740740
description: Curation set not found
741741
content:
@@ -1805,7 +1805,7 @@ paths:
18051805
- $ref: "#/components/schemas/AnalyticsRule"
18061806
- type: array
18071807
items:
1808-
anyOf:
1808+
oneOf:
18091809
- $ref: "#/components/schemas/AnalyticsRule"
18101810
- type: object
18111811
properties:
@@ -4432,9 +4432,6 @@ components:
44324432
items:
44334433
$ref: "#/components/schemas/SynonymSetSchema"
44344434

4435-
SynonymSetRetrieveSchema:
4436-
$ref: "#/components/schemas/SynonymSetCreateSchema"
4437-
44384435
SynonymSetDeleteSchema:
44394436
type: object
44404437
required:
@@ -4595,9 +4592,6 @@ components:
45954592
type: string
45964593
description: document id that should be excluded from the search results.
45974594

4598-
CurationSetRetrieveSchema:
4599-
$ref: '#/components/schemas/CurationSetCreateSchema'
4600-
46014595
CurationSetDeleteSchema:
46024596
type: object
46034597
required:

0 commit comments

Comments
 (0)