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 86b80f9 commit b3710cfCopy full SHA for b3710cf
src/Chain/StructuredOutput/SchemaFactory.php
@@ -66,11 +66,7 @@ public function buildSchema(string $className): array
66
67
// Add property schema to main schema
68
$schema['properties'][$propertyName] = $propertySchema;
69
-
70
- // If the property does not allow null, mark it as required
71
- if (!$type->isNullable()) {
72
- $schema['required'][] = $propertyName;
73
- }
+ $schema['required'][] = $propertyName;
74
}
75
76
return $schema;
0 commit comments