You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// property schema is created in SchemaPropertyMetadataFactory, but it cannot build resource reference ($ref)
197
197
// complete property schema with resource reference ($ref) only if it's related to an object
198
198
$version = $schema->getVersion();
199
-
$subSchema = newSchema($version);
200
-
$subSchema->setDefinitions($schema->getDefinitions()); // Populate definitions of the main schema
199
+
$refs = [];
200
+
$isNullable = null;
201
201
202
202
foreach ($typesas$type) {
203
+
$subSchema = newSchema($version);
204
+
$subSchema->setDefinitions($schema->getDefinitions()); // Populate definitions of the main schema
205
+
203
206
// TODO: in 3.3 add trigger_deprecation() as type factories are not used anymore, we moved this logic to SchemaPropertyMetadataFactory so that it gets cached
204
207
if ($typeFromFactory = $this->typeFactory?->getType($type, 'jsonschema', $propertyMetadata->isReadableLink(), $serializerContext)) {
0 commit comments