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
In this case it would have been object<string, JsonSchema>, but that's not a supported syntax. So maybe either \ArrayObject<string, JsonSchema> or simply an \object with an explanatory description.
The text was updated successfully, but these errors were encountered:
When I try creating a schema with an array/hashmap of definitions it complains that definitions was expected to be an object.
Typecasting that array to an object fixes the problem (it actually shows a different error, but that's irrelevant):
So I believe the PHPDoc here is wrong:
php-json-schema/src/JsonSchema.php
Line 103 in 2b99251
In this case it would have been
object<string, JsonSchema>
, but that's not a supported syntax. So maybe either\ArrayObject<string, JsonSchema>
or simply an\object
with an explanatory description.The text was updated successfully, but these errors were encountered: