We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99630ce commit 0fec10aCopy full SHA for 0fec10a
packages/tasks-gen/scripts/inference-codegen.ts
@@ -145,7 +145,13 @@ async function generateBinaryInputTypes(
145
return;
146
}
147
const propName = propSignature.name.getText(tsSource);
148
- const propIsMedia = !!spec["properties"]?.[propName]?.["comment"]?.includes("type=binary");
+
149
+ const propIsMedia =
150
+ typeof spec["properties"] !== "string" &&
151
+ typeof spec["properties"]?.[propName] !== "string" &&
152
+ typeof spec["properties"]?.[propName]?.["comment"] === "string"
153
+ ? !!spec["properties"]?.[propName]?.["comment"]?.includes("type=binary")
154
+ : false;
155
if (!propIsMedia) {
156
157
0 commit comments