Skip to content

Commit 6365947

Browse files
authored
fix: complex json schema default (#267)
1 parent 711c208 commit 6365947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Chain/JsonSchema/Factory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private function getTypeSchema(Type $type): array
162162
return ['type' => 'string', 'format' => 'date-time'];
163163
} else {
164164
// Recursively build the schema for an object type
165-
return $this->buildProperties($type->getClassName());
165+
return $this->buildProperties($type->getClassName()) ?? ['type' => 'object'];
166166
}
167167

168168
// no break

0 commit comments

Comments
 (0)