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
What are the annotation values if the NavigationProperty is null?
SelectSupport/ComputeSupported is effectively not given, because null is not an allowed value. Hence its default value false applies.
ComputeSupported is effectively not given, because null is not an allowed value. But does that mean that the default value true applies? In other words and in XML parlance, is this equivalent to
<Annotation Term="Capabilities.ComputedSupported" /> (in which case the DefaultValue="true" would apply) or to
no <Annotation> at all? In which case no DefaultValue would apply, but the general remarks would:
A service is assumed to support by default the following capabilities even though an
annotation doesn’t exist
(Here $compute is not mentioned, so the assumption would be "not supported".)
The text was updated successfully, but these errors were encountered:
One could argue that these annotations are invalid because the type of the ValuePath expression is "nullable Boolean" and does not match the type of the term or term property "non-nullable Boolean".
One could argue that these annotations are invalid
Yes, but what follows from that? Servers cannot avoid such values if they use dynamic expressions. And the default values should come to the rescue in such cases. We should consider spelling that out in more detail.
Consider the following annotations:
What are the annotation values if the
NavigationProperty
is null?SelectSupport/ComputeSupported
is effectively not given, because null is not an allowed value. Hence its default valuefalse
applies.ComputeSupported
is effectively not given, because null is not an allowed value. But does that mean that the default valuetrue
applies? In other words and in XML parlance, is this equivalent to<Annotation Term="Capabilities.ComputedSupported" />
(in which case theDefaultValue="true"
would apply) or tono
<Annotation>
at all? In which case noDefaultValue
would apply, but the general remarks would:(Here
$compute
is not mentioned, so the assumption would be "not supported".)The text was updated successfully, but these errors were encountered: