Skip to content

Commit a039d67

Browse files
committed
Update PathItemObject
1 parent 9b31327 commit a039d67

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/types/OpenAPI3.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ export interface OpenAPI3Schemas {
99
}
1010

1111
export interface OpenAPI3Paths {
12-
[path: string]: Partial<OpenAPI3PathItem>;
12+
[path: string]: OpenAPI3PathItemObject;
1313
}
1414

15-
export type OpenAPI3PathItem = {
16-
$ref: string;
17-
summary: string;
18-
description: string;
19-
get: OpenAPI3Operation;
20-
put: OpenAPI3Operation;
21-
post: OpenAPI3Operation;
22-
delete: OpenAPI3Operation;
23-
options: OpenAPI3Operation;
24-
head: OpenAPI3Operation;
25-
patch: OpenAPI3Operation;
26-
trace: OpenAPI3Operation;
27-
parameters: Parameter[];
15+
export type OpenAPI3PathItemObject = {
16+
$ref?: string;
17+
summary?: string;
18+
description?: string;
19+
get?: OpenAPI3Operation;
20+
put?: OpenAPI3Operation;
21+
post?: OpenAPI3Operation;
22+
delete?: OpenAPI3Operation;
23+
options?: OpenAPI3Operation;
24+
head?: OpenAPI3Operation;
25+
patch?: OpenAPI3Operation;
26+
trace?: OpenAPI3Operation;
27+
parameters?: Parameter[];
2828
};
2929

3030
export interface OpenAPI3Operation {

0 commit comments

Comments
 (0)