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
Omitted properties, without a default, are set to null.
When we need to use null as an actual value, we have to use a Value object.
This is the case for keywords that give values that should pass the Schema.
i.e. example, examples, const, enum, default
Reasons For
We get to use isset(<keyword>) or <keyword> === null to check for omitted properties. It's fast and built in.
The Value keyword hides away messy mixed typehints:
Activity
[-]Do we need an `Omitted` value object?[/-][+]Do we need a `Keyword::Omitted`?[/+][-]Do we need a `Keyword::Omitted`?[/-][+]Do we need an `Omitted`?[/+]