File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,28 @@ export interface OpenAPI3Schemas {
9
9
}
10
10
11
11
export interface OpenAPI3Paths {
12
- [ path : string ] : {
13
- [ method : string ] : OpenAPI3Operation | Parameter [ ] ;
14
- } ;
12
+ [ path : string ] : Partial < OpenAPI3PathItem > ;
13
+ }
14
+
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
+ servers : any
28
+ parameters : Parameter [ ]
15
29
}
16
30
17
31
export interface OpenAPI3Operation {
18
32
operationId ?: string ;
33
+ summary ?: string ;
19
34
description ?: string ;
20
35
parameters ?: Parameter [ ] ;
21
36
requestBody ?: OpenAPI3RequestBody ;
You can’t perform that action at this time.
0 commit comments