When the required facet on a property is specified explicitly in a type definition, any question mark in its property name is treated as part of the property name rather than as an indicator that the property is optional.
the profile type has a property whose name is preference? (including the trailing question mark) and that is required. The same property could be made optional in two equivalent ways:
When the
required
facet on a property is specified explicitly in a type definition, any question mark in its property name is treated as part of the property name rather than as an indicator that the property is optional.For example, in
the
profile
type has a property whose name ispreference?
(including the trailing question mark) and that is required. The same property could be made optional in two equivalent ways:or