Skip to content

Commit 086dac6

Browse files
committed
Handle schema with not "type"
1 parent f61b4ad commit 086dac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SchemaToINodeProperties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class N8NINodeProperties {
163163
}
164164
const requestBodySchema = content.schema!!;
165165
const schema = this.refResolver.resolve<OpenAPIV3.SchemaObject>(requestBodySchema)
166-
if (schema.type != 'object' && schema.type != 'array') {
166+
if (!schema.properties && schema.type != 'object' && schema.type != 'array') {
167167
throw new Error(`Request body schema type '${schema.type}' not supported`);
168168
}
169169

0 commit comments

Comments
 (0)