Skip to content

Commit 46facc8

Browse files
authored
fix: update OpenAPI schema for ChatGPT plugin compatibility (#5)
1 parent b6053f8 commit 46facc8

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

openapi.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
openapi: 3.1.0
22
info:
33
title: GPT Gateway
4-
description: FastAPI middleware to list, read, write, and recursively scan GitHub repositories. Enables GPT to navigate file structures and edit code.
4+
description: FastAPI middleware to list, read, write, and recursively scan GitHub repositories. Enables GPT to navigate
5+
file structures and edit code.
56
version: 1.0.1
67
servers:
78
- url: https://nomena-gpt.xyz/
89
description: GPT Gateway API root
9-
1010
paths:
1111
/list-files/:
1212
get:
@@ -29,15 +29,17 @@ paths:
2929
- name: path
3030
in: query
3131
required: false
32-
description: Path inside the repository (default: root)
32+
description: Path inside the repository
3333
schema:
3434
type: string
35+
default: ""
3536
- name: branch
3637
in: query
3738
required: false
38-
description: Git branch name (default: main)
39+
description: Git branch name
3940
schema:
4041
type: string
42+
default: main
4143
responses:
4244
"200":
4345
description: List of file and folder objects
@@ -65,7 +67,6 @@ paths:
6567
- name
6668
- path
6769
- type
68-
6970
/read-file/:
7071
get:
7172
operationId: readFile
@@ -92,9 +93,10 @@ paths:
9293
- name: branch
9394
in: query
9495
required: false
95-
description: Branch name (default: main)
96+
description: Branch name
9697
schema:
9798
type: string
99+
default: main
98100
responses:
99101
"200":
100102
description: File content
@@ -109,7 +111,6 @@ paths:
109111
type: string
110112
content:
111113
type: string
112-
113114
/write-file/:
114115
put:
115116
operationId: writeFile
@@ -156,7 +157,6 @@ paths:
156157
type: string
157158
result:
158159
type: object
159-
160160
/scan-repo/:
161161
post:
162162
operationId: scanRepo
@@ -201,7 +201,6 @@ paths:
201201
type: array
202202
items:
203203
$ref: "#/components/schemas/TreeNode"
204-
205204
components:
206205
schemas:
207206
TreeNode:

0 commit comments

Comments
 (0)