Skip to content

Commit c0fd66c

Browse files
committed
fix: Strip down the cat facts OpenAPI schema to save on Bedrock tokens
1 parent e735343 commit c0fd66c

File tree

1 file changed

+0
-125
lines changed

1 file changed

+0
-125
lines changed

examples/servers/cat-facts/cat-facts-openapi.json

Lines changed: 0 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,6 @@
1414
}
1515
],
1616
"paths": {
17-
"/breeds": {
18-
"get": {
19-
"tags": [
20-
"Breeds"
21-
],
22-
"summary": "Get a list of breeds",
23-
"description": "Returns a a list of breeds",
24-
"operationId": "getBreeds",
25-
"parameters": [
26-
{
27-
"name": "limit",
28-
"in": "query",
29-
"description": "limit the amount of results returned",
30-
"required": false,
31-
"schema": {
32-
"type": "integer",
33-
"format": "int64"
34-
}
35-
}
36-
],
37-
"responses": {
38-
"200": {
39-
"description": "successful operation",
40-
"content": {
41-
"application/json": {
42-
"schema": {
43-
"type": "array",
44-
"items": {
45-
"$ref": "#/components/schemas/Breed"
46-
}
47-
}
48-
}
49-
}
50-
}
51-
}
52-
}
53-
},
5417
"/fact": {
5518
"get": {
5619
"tags": [
@@ -87,94 +50,10 @@
8750
}
8851
}
8952
}
90-
},
91-
"/facts": {
92-
"get": {
93-
"tags": [
94-
"Facts"
95-
],
96-
"summary": "Get a list of facts",
97-
"description": "Returns a a list of facts",
98-
"operationId": "getFacts",
99-
"parameters": [
100-
{
101-
"name": "max_length",
102-
"in": "query",
103-
"description": "maximum length of returned fact",
104-
"required": false,
105-
"schema": {
106-
"type": "integer",
107-
"format": "int64"
108-
}
109-
},
110-
{
111-
"name": "limit",
112-
"in": "query",
113-
"description": "limit the amount of results returned",
114-
"required": false,
115-
"schema": {
116-
"type": "integer",
117-
"format": "int64"
118-
}
119-
}
120-
],
121-
"responses": {
122-
"200": {
123-
"description": "successful operation",
124-
"content": {
125-
"application/json": {
126-
"schema": {
127-
"type": "array",
128-
"items": {
129-
"$ref": "#/components/schemas/CatFact"
130-
}
131-
}
132-
}
133-
}
134-
}
135-
}
136-
}
13753
}
13854
},
13955
"components": {
14056
"schemas": {
141-
"Breed": {
142-
"title": "Breed model",
143-
"description": "Breed",
144-
"properties": {
145-
"breed": {
146-
"title": "Breed",
147-
"description": "Breed",
148-
"type": "string",
149-
"format": "string"
150-
},
151-
"country": {
152-
"title": "Country",
153-
"description": "Country",
154-
"type": "string",
155-
"format": "string"
156-
},
157-
"origin": {
158-
"title": "Origin",
159-
"description": "Origin",
160-
"type": "string",
161-
"format": "string"
162-
},
163-
"coat": {
164-
"title": "Coat",
165-
"description": "Coat",
166-
"type": "string",
167-
"format": "string"
168-
},
169-
"pattern": {
170-
"title": "Pattern",
171-
"description": "Pattern",
172-
"type": "string",
173-
"format": "string"
174-
}
175-
},
176-
"type": "object"
177-
},
17857
"CatFact": {
17958
"title": "CatFact model",
18059
"description": "CatFact",
@@ -201,10 +80,6 @@
20180
"name": "Facts",
20281
"description": "Cat Facts"
20382
},
204-
{
205-
"name": "Breeds",
206-
"description": "Breeds"
207-
}
20883
],
20984
"security": [
21085
[]

0 commit comments

Comments
 (0)