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 f887c52 commit 2450623Copy full SHA for 2450623
packages/fdr-sdk/src/converters/db/examples/generateHttpBodyExample.ts
@@ -383,7 +383,9 @@ function getAllObjectProperties(
383
type = resolveAlias(type.shape.value.value, resolveTypeById);
384
}
385
if (type.shape.type !== "object") {
386
- throw new Error("Object extends non-object " + typeId);
+ // Skip non-object types in extends (e.g., primitives or aliases to primitives)
387
+ // This can occur when converting from OpenAPI where allOf might include non-objects
388
+ return [];
389
390
return getAllObjectProperties(type.shape, resolveTypeById);
391
})
0 commit comments