Skip to content

Commit 3fbb84d

Browse files
authored
Fix openapi specification (#8273)
## Problem There are some swagger errors in `pageserver/src/http/openapi_spec.yml` ``` Error 431 15000 Object includes not allowed fields Error 569 3100401 should always have a 'required' Error 569 15000 Object includes not allowed fields Error 1111 10037 properties members must be schemas ``` ## Summary of changes Fixed the above errors.
1 parent a4fa250 commit 3fbb84d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pageserver/src/http/openapi_spec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ paths:
377377
schema:
378378
$ref: "#/components/schemas/ConflictError"
379379

380-
/v1/tenant/{tenant_id}/{timeline_id}/preserve_initdb_archive:
380+
/v1/tenant/{tenant_id}/timeline/{timeline_id}/preserve_initdb_archive:
381381
parameters:
382382
- name: tenant_id
383383
in: path
@@ -429,7 +429,9 @@ paths:
429429
schema:
430430
$ref: "#/components/schemas/SyntheticSizeResponse"
431431
text/html:
432-
description: SVG representation of the tenant and it's timelines.
432+
schema:
433+
type: string
434+
description: SVG representation of the tenant and its timelines.
433435
"401":
434436
description: Unauthorized Error
435437
content:
@@ -568,7 +570,7 @@ paths:
568570
type: string
569571
- name: timeline_id
570572
in: path
571-
ŕequired: true
573+
required: true
572574
schema:
573575
type: string
574576

@@ -774,15 +776,13 @@ components:
774776
TenantCreateRequest:
775777
allOf:
776778
- $ref: '#/components/schemas/TenantConfig'
779+
- $ref: '#/components/schemas/TenantLoadRequest'
777780
- type: object
778781
required:
779782
- new_tenant_id
780783
properties:
781784
new_tenant_id:
782785
type: string
783-
generation:
784-
type: integer
785-
description: Attachment generation number.
786786
TenantLoadRequest:
787787
type: object
788788
properties:
@@ -1106,7 +1106,7 @@ components:
11061106
reparented_timelines:
11071107
type: array
11081108
description: Set of reparented timeline ids
1109-
properties:
1109+
items:
11101110
type: string
11111111
format: hex
11121112
description: TimelineId

0 commit comments

Comments
 (0)