From 51a7e90bd23684751728852d3165ba8888aaa60b Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Tue, 9 Dec 2025 20:43:16 +0700 Subject: [PATCH 1/3] fix: use `oneOf` --- openapi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yml b/openapi.yml index e1a279d..f71b97a 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1805,7 +1805,7 @@ paths: - $ref: "#/components/schemas/AnalyticsRule" - type: array items: - anyOf: + oneOf: - $ref: "#/components/schemas/AnalyticsRule" - type: object properties: From e92d4ad5801208a84d65c33833ddf93ea981b09e Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Tue, 9 Dec 2025 22:29:29 +0700 Subject: [PATCH 2/3] fix: correct schema for curation set retrieve one --- openapi.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openapi.yml b/openapi.yml index f71b97a..0a18c80 100644 --- a/openapi.yml +++ b/openapi.yml @@ -735,7 +735,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CurationSetRetrieveSchema" + $ref: "#/components/schemas/CurationSetSchema" "404": description: Curation set not found content: @@ -4586,9 +4586,6 @@ components: type: string description: document id that should be excluded from the search results. - CurationSetRetrieveSchema: - $ref: '#/components/schemas/CurationSetCreateSchema' - CurationSetDeleteSchema: type: object required: From f57cef5fed73b5445ffa9bee6f40b9adcaf66c0f Mon Sep 17 00:00:00 2001 From: Hayden Hung Hoang Date: Wed, 10 Dec 2025 11:06:28 +0700 Subject: [PATCH 3/3] fix: correct schema for synonym set retrieve one --- openapi.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/openapi.yml b/openapi.yml index 0a18c80..9bc76ee 100644 --- a/openapi.yml +++ b/openapi.yml @@ -495,14 +495,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SynonymSetRetrieveSchema" + $ref: "#/components/schemas/SynonymSetSchema" "404": description: Synonym set not found content: application/json: schema: $ref: "#/components/schemas/ApiResponse" - + put: tags: - synonyms @@ -4041,7 +4041,7 @@ components: query_counter_events: { type: integer } doc_log_events: { type: integer } doc_counter_events: { type: integer } - + APIStatsResponse: type: object properties: @@ -4423,9 +4423,6 @@ components: items: $ref: "#/components/schemas/SynonymSetSchema" - SynonymSetRetrieveSchema: - $ref: "#/components/schemas/SynonymSetCreateSchema" - SynonymSetDeleteSchema: type: object required: