Skip to content

Commit bc62568

Browse files
committed
fix: šŸ› fallback the schema for mixed properties to string|null instead of null
1 parent aea8113 commit bc62568

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ā€Žsrc/JsonSchema/Metadata/Property/Factory/SchemaPropertyMetadataFactory.phpā€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ private function getJsonSchemaFromType(Type $type, ?bool $readableLink = null):
280280
TypeIdentifier::OBJECT => ['type' => 'object'],
281281
TypeIdentifier::RESOURCE => ['type' => 'string'],
282282
TypeIdentifier::CALLABLE => ['type' => 'string'],
283+
TypeIdentifier::MIXED => ['type' => 'string'],
283284
default => ['type' => 'null'],
284285
};
285286

0 commit comments

Comments
Ā (0)