@bagelink/sdk 0.0.221 → 0.0.226-beta.0
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
|
@@ -17,7 +17,7 @@ export default async (openApiUrl: string, baseURL: string): Promise<OpenAPIRespo
|
|
|
17
17
|
// Generate Functions
|
|
18
18
|
const { paths } = openApi;
|
|
19
19
|
if (!paths) throw new Error('No paths found in OpenAPI document');
|
|
20
|
-
const code = generateFunctions(paths, baseURL);
|
|
20
|
+
const code = generateFunctions(paths, baseURL); // TODO baseURL should not be set here, but should be instatiated in runtime somehow
|
|
21
21
|
return { types, code };
|
|
22
22
|
} catch (error: any) {
|
|
23
23
|
throw new Error(error);
|