@bagelink/sdk 1.4.128 → 1.4.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -549,8 +549,8 @@ export function generateFunctions(paths: OpenAPIPaths, baseUrl: string): string
|
|
|
549
549
|
) {
|
|
550
550
|
// Single method endpoint with unique path
|
|
551
551
|
const method = methods[0]
|
|
552
|
-
const opp = operation[method] as OpenAPIOperation
|
|
553
|
-
acc[objFuncKey] = createFunctionPlaceholder(path, method
|
|
552
|
+
const opp = operation[method!] as OpenAPIOperation
|
|
553
|
+
acc[objFuncKey] = createFunctionPlaceholder(path, method!, opp)
|
|
554
554
|
} else if (index === array.length - 1) {
|
|
555
555
|
// Multiple methods endpoint or path with conflicts
|
|
556
556
|
acc[objFuncKey] = handlePathSegment(path, operation, acc[objFuncKey])
|