Skip to content

Commit 8050377

Browse files
committed
Remove /search path from summary test
1 parent a039d67 commit 8050377

File tree

1 file changed

+4
-67
lines changed

1 file changed

+4
-67
lines changed

tests/v3/index.test.ts

Lines changed: 4 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -994,9 +994,10 @@ describe("OpenAPI3 features", () => {
994994
openapi: "3.0.1",
995995
paths: {
996996
"/": {
997-
summary: "Root",
998-
description: "Lorem ipsum sic dolor amet",
997+
summary: "root summary",
998+
description: "root description",
999999
get: {
1000+
summary: "get summary",
10001001
responses: {
10011002
"200": {
10021003
content: {
@@ -1015,49 +1016,6 @@ describe("OpenAPI3 features", () => {
10151016
},
10161017
},
10171018
},
1018-
"/search": {
1019-
post: {
1020-
parameters: [
1021-
{
1022-
name: "q",
1023-
in: "query",
1024-
required: true,
1025-
schema: { type: "string" },
1026-
},
1027-
{
1028-
name: "p",
1029-
in: "query",
1030-
schema: { type: "integer" },
1031-
},
1032-
],
1033-
responses: {
1034-
"200": {
1035-
content: {
1036-
"application/json": {
1037-
schema: {
1038-
type: "object",
1039-
properties: {
1040-
results: {
1041-
type: "array",
1042-
items: { $ref: "#/components/schemas/SearchResult" },
1043-
},
1044-
total: { type: "integer" },
1045-
},
1046-
required: ["total"],
1047-
},
1048-
},
1049-
},
1050-
},
1051-
"404": {
1052-
content: {
1053-
"application/json": {
1054-
schema: { $ref: "#/components/schemas/ErrorResponse" },
1055-
},
1056-
},
1057-
},
1058-
},
1059-
},
1060-
},
10611019
},
10621020
components: {
10631021
schemas: {
@@ -1094,35 +1052,14 @@ describe("OpenAPI3 features", () => {
10941052
format(`
10951053
export interface paths {
10961054
'/': {
1097-
get: {
1055+
get: {
10981056
responses: {
10991057
'200': {
11001058
'application/json': { title: string; body: string }
11011059
}
11021060
}
11031061
}
11041062
};
1105-
'/search': {
1106-
post: {
1107-
parameters: {
1108-
query: {
1109-
q: string;
1110-
p?: number;
1111-
}
1112-
};
1113-
responses: {
1114-
'200': {
1115-
'application/json': {
1116-
results?: components['schemas']['SearchResult'][];
1117-
total: number;
1118-
}
1119-
}
1120-
'404': {
1121-
'application/json': components['schemas']['ErrorResponse']
1122-
}
1123-
}
1124-
}
1125-
}
11261063
}
11271064
11281065
export interface operations {}

0 commit comments

Comments
 (0)