You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "mrlubos (via GitHub)" <gi...@apache.org> on 2026/06/18 20:51:24 UTC
Re: [PR] Add Custos portal, portal-facing endpoints, and enhanced AMIE baseline test scenarios [airavata-custos]
mrlubos commented on code in PR #496:
URL: https://github.com/apache/airavata-custos/pull/496#discussion_r3438818639
##########
web/scripts/gen-api.mts:
##########
@@ -0,0 +1,57 @@
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+import { createClient } from "@hey-api/openapi-ts";
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const webRoot = path.resolve(here, "..");
+const repoRoot = path.resolve(webRoot, "..");
+
+type ModuleSpec = {
+ name: string;
+ input: string;
+ output: string;
+};
+
+const modules: ModuleSpec[] = [
+ {
+ name: "core",
+ input: path.join(repoRoot, "api", "core.openapi.yaml"),
+ output: path.join(webRoot, "src", "generated", "core"),
+ },
+ {
+ name: "amie",
+ input: path.join(
+ repoRoot,
+ "connectors",
+ "ACCESS",
+ "AMIE-Processor",
+ "api",
+ "amie.openapi.yaml",
+ ),
+ output: path.join(webRoot, "src", "generated", "amie"),
+ },
+];
+
+async function main() {
+ for (const mod of modules) {
+ await createClient({
Review Comment:
@lahirujayathilake `createClient()` accepts a [matrix](https://heyapi.dev/docs/openapi/typescript/configuration#job-matrix), did that not work for you?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org