We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58259c9 commit 5d494fdCopy full SHA for 5d494fd
1 file changed
packages/openapi/types.ts
@@ -43,7 +43,16 @@ export type OpenApiOperationObject = {
43
responses?: Record<string, OpenApiResponse>
44
}
45
46
-export type OpenApiPathItem = Record<string, OpenApiOperationObject>
+export type OpenApiPathItem = {
47
+ get?: OpenApiOperationObject
48
+ put?: OpenApiOperationObject
49
+ post?: OpenApiOperationObject
50
+ delete?: OpenApiOperationObject
51
+ options?: OpenApiOperationObject
52
+ head?: OpenApiOperationObject
53
+ patch?: OpenApiOperationObject
54
+ trace?: OpenApiOperationObject
55
+}
56
57
export type OpenApiSpec = {
58
openapi: string
0 commit comments