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
When a Component Schema contains required fields (see example on how to reproduce) and if these fields are nullable, isset conditions blocks sub object denormalization.
Jane version(s) affected: 7.6.0
Description
When a Component Schema contains required fields (see example on how to reproduce) and if these fields are nullable, isset conditions blocks sub object denormalization.
How to reproduce
Giving this component
it generates this code sample on parent model
Excepts that isset check also null values so denormalization will be never call.
Possible Solution
Replace https://github.com/janephp/janephp/blob/next/src/Component/JsonSchema/Guesser/Guess/ObjectType.php#L71-L76 by
However if
$input
is not an array this solution is not working.Additional context
The text was updated successfully, but these errors were encountered: