Skip to content

Commit 5ea83ab

Browse files
committed
fix: synonym item upsert schema does not require id
1 parent 05c5e35 commit 5ea83ab

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

openapi.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ paths:
502502
application/json:
503503
schema:
504504
$ref: "#/components/schemas/ApiResponse"
505-
505+
506506
put:
507507
tags:
508508
- synonyms
@@ -650,7 +650,7 @@ paths:
650650
content:
651651
application/json:
652652
schema:
653-
$ref: "#/components/schemas/SynonymItemSchema"
653+
$ref: "#/components/schemas/SynonymItemUpsertSchema"
654654
required: true
655655
responses:
656656
"200":
@@ -4041,7 +4041,7 @@ components:
40414041
query_counter_events: { type: integer }
40424042
doc_log_events: { type: integer }
40434043
doc_counter_events: { type: integer }
4044-
4044+
40454045
APIStatsResponse:
40464046
type: object
40474047
properties:
@@ -4364,15 +4364,11 @@ components:
43644364
type: string
43654365
description: ID of the deleted NL search model
43664366

4367-
SynonymItemSchema:
4367+
SynonymItemUpsertSchema:
43684368
type: object
43694369
required:
4370-
- id
43714370
- synonyms
43724371
properties:
4373-
id:
4374-
type: string
4375-
description: Unique identifier for the synonym item
43764372
synonyms:
43774373
type: array
43784374
description: Array of words that should be considered as synonyms
@@ -4390,6 +4386,17 @@ components:
43904386
items:
43914387
type: string
43924388

4389+
SynonymItemSchema:
4390+
allOf:
4391+
- type: object
4392+
required:
4393+
- id
4394+
properties:
4395+
id:
4396+
type: string
4397+
description: Unique identifier for the synonym item
4398+
- $ref: "#/components/schemas/SynonymItemUpsertSchema"
4399+
43934400
SynonymSetCreateSchema:
43944401
type: object
43954402
required:

0 commit comments

Comments
 (0)