fix: support patch in openapi, fixes 2138
This commit is contained in:
@@ -519,7 +519,7 @@ const convertPathToHoppReqs = (
|
|||||||
pathObj: OpenAPIPathInfoType
|
pathObj: OpenAPIPathInfoType
|
||||||
) =>
|
) =>
|
||||||
pipe(
|
pipe(
|
||||||
["get", "head", "post", "put", "delete", "options"] as const,
|
["get", "head", "post", "put", "delete", "options", "patch"] as const,
|
||||||
|
|
||||||
// Filter and map out path info
|
// Filter and map out path info
|
||||||
RA.filterMap(
|
RA.filterMap(
|
||||||
@@ -538,10 +538,10 @@ const convertPathToHoppReqs = (
|
|||||||
|
|
||||||
// We don't need to worry about reference types as the Dereferencing pass should remove them
|
// We don't need to worry about reference types as the Dereferencing pass should remove them
|
||||||
params: parseOpenAPIParams(
|
params: parseOpenAPIParams(
|
||||||
(info.parameters as OpenAPIParamsType[]) ?? []
|
(info.parameters as OpenAPIParamsType[] | undefined) ?? []
|
||||||
),
|
),
|
||||||
headers: parseOpenAPIHeaders(
|
headers: parseOpenAPIHeaders(
|
||||||
(info.parameters as OpenAPIParamsType[]) ?? []
|
(info.parameters as OpenAPIParamsType[] | undefined) ?? []
|
||||||
),
|
),
|
||||||
|
|
||||||
auth: parseOpenAPIAuth(doc, info),
|
auth: parseOpenAPIAuth(doc, info),
|
||||||
|
|||||||
Reference in New Issue
Block a user