Skip to content

Commit

Permalink
inferral independent of data
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Jun 27, 2024
1 parent 63f6cea commit a03d856
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/odata-url-conventions/odata-url-conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ <h3 id="511-common-expression-syntax"><a name="CommonExpressionSyntax" href="#Co
</summary>
<p>The following operators, functions, and literals can be used in <code>$filter</code>, <code>$orderby</code>, and <code>$compute</code> expressions.</p>
<p>The <a href="#ODataABNF">OData-ABNF</a> <code>commonExpr</code> syntax rule defines the formal grammar of common expressions.</p>
<p>The following subsections specify situations in which expressions evaluate to <code>null</code> if operands or parameters do not have the types expected by an operator or function. Notwithstanding these rules, if such a type discrepancy can be inferred for an expression that appears in a request, services SHOULD reject the request with an error message explaining the discrepancy. The inferral could be based on, for example, the declared type of a property or the type of a literal value that occurs in the expression.</p>
<p>The following subsections specify situations in which expressions evaluate to <code>null</code> if operands or parameters do not have the types expected by an operator or function. Notwithstanding these rules, if such a type discrepancy can be inferred for an expression that appears in a request independently of the underlying data, services SHOULD reject the request with an error message explaining the discrepancy. The inferral could be based on, for example, the declared type of a property or the type of a literal value that occurs in the expression.</p>
<div class="example">
<p>Example 51: In a search for people above a certain age</p>
<pre><code>http://host/service/People?$filter=Age gt &#39;50&#39;</code></pre>
Expand Down
3 changes: 2 additions & 1 deletion docs/odata-url-conventions/odata-url-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,8 @@ grammar of common expressions.
The following subsections specify situations in which expressions evaluate to `null`
if operands or parameters do not have the types expected by an operator or function.
Notwithstanding these rules, if such a type discrepancy can be inferred for an expression
that appears in a request, services SHOULD reject the request with an error message
that appears in a request independently of the underlying data,
services SHOULD reject the request with an error message
explaining the discrepancy. The inferral could be based on, for example, the
declared type of a property or the type of a literal value that occurs in the
expression.
Expand Down
3 changes: 2 additions & 1 deletion odata-url-conventions/5 Query Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ grammar of common expressions.
The following subsections specify situations in which expressions evaluate to `null`
if operands or parameters do not have the types expected by an operator or function.
Notwithstanding these rules, if such a type discrepancy can be inferred for an expression
that appears in a request, services SHOULD reject the request with an error message
that appears in a request independently of the underlying data,
services SHOULD reject the request with an error message
explaining the discrepancy. The inferral could be based on, for example, the
declared type of a property or the type of a literal value that occurs in the
expression.
Expand Down

0 comments on commit a03d856

Please sign in to comment.