Skip to content

Commit b7b14cc

Browse files
committed
docs: fix OpenAPI spec schema discrepancies
- Fix /admin/ws-auth method from POST to GET (matches actual handler) - Fix /admin/ws-auth summary from "Test source database" to "WebSocket authentication" - Add missing dbName field to Database schema - Add missing branch and revision fields to Clone schema - Add missing extra_conf field to CreateClone schema https://claude.ai/code/session_011sPDgBjzL2N2X6jiYyoTjQ
1 parent b628742 commit b7b14cc

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

engine/api/swagger-spec/dblab_openapi.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,11 +1219,11 @@ paths:
12191219
message: "Check your verification token."
12201220
x-codegen-request-body-name: body
12211221
/admin/ws-auth:
1222-
post:
1222+
get:
12231223
tags:
12241224
- Admin
1225-
summary: Test source database
1226-
operationId: testDBConnection2
1225+
summary: WebSocket authentication
1226+
operationId: wsAuth
12271227
parameters:
12281228
- name: Verification-Token
12291229
in: header
@@ -1645,6 +1645,8 @@ components:
16451645
type: string
16461646
password:
16471647
type: string
1648+
dbName:
1649+
type: string
16481650
Clone:
16491651
type: object
16501652
properties:
@@ -1654,6 +1656,10 @@ components:
16541656
type: string
16551657
snapshot:
16561658
$ref: '#/components/schemas/Snapshot'
1659+
branch:
1660+
type: string
1661+
revision:
1662+
type: integer
16571663
protected:
16581664
type: boolean
16591665
default: false
@@ -1730,6 +1736,11 @@ components:
17301736
default:
17311737
db_name:
17321738
type: string
1739+
extra_conf:
1740+
type: object
1741+
additionalProperties:
1742+
type: string
1743+
description: Extra PostgreSQL configuration parameters for the clone
17331744
ResetClone:
17341745
type: object
17351746
properties:

0 commit comments

Comments
 (0)