Skip to content

Commit

Permalink
continue-on-error in batch (#2043)
Browse files Browse the repository at this point in the history
Fixes #2038
  • Loading branch information
HeikoTheissen authored Jan 15, 2025
1 parent 10fd218 commit 988df24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/odata-protocol/odata-protocol.html
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ <h4 id="8283-preference-continue-on-error-odatacontinue-on-error"><a id="Prefere
<p>The <code>continue-on-error</code> preference can also be used on a <a href="#UpdateaCollectionofEntities">delta update</a>, <a href="#UpdateMembersofaCollection">set-based update</a>, or <a href="#DeleteMembersofaCollection">set-based delete</a> to request that the service continue attempting to process changes after receiving an error.</p>
<p>If the service encounters any errors processing the request and returns a successful response code, then it MUST include a <a href="#HeaderPreferenceApplied"><code>Preference-Applied</code></a> response header containing the <code>continue-on-error</code> preference with an explicit value of <code>true</code>.</p>
<p>A service MAY specify support for the <code>continue-on-error</code> preference using an annotation with term <a href="https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Capabilities.V1.md#BatchContinueOnErrorSupported"><code>Capabilities.BatchContinueOnErrorSupported</code></a>, see <a href="#ODataVocCap">OData-VocCap</a>.</p>
<p>The <code>continue-on-error</code> preference SHOULD NOT be applied to individual requests within a batch.</p>
<p>The <code>continue-on-error</code> preference on a batch request refers to whether individual requests within a batch should be executed if others have failed. Whether an individual request that represents multiple operations should continue on error can instead be expressed through a <code>continue-on-error</code> preference on that individual request.</p>
<p>Note: The <code>continue-on-error</code> preference was named <code>odata.continue-on-error</code> in OData version 4.0. Services that support the<code> continue-on-error</code> preference SHOULD also support <code>odata.continue-on-error</code> for OData 4.0 clients and clients SHOULD use <code>odata.continue-on-error</code> for compatibility with OData 4.0 services.</p>
</details>
<details open><summary>
Expand Down
7 changes: 5 additions & 2 deletions docs/odata-protocol/odata-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1345,8 +1345,11 @@ using an annotation with term
[`Capabilities.BatchContinueOnErrorSupported`](https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Capabilities.V1.md#BatchContinueOnErrorSupported),
see [OData-VocCap](#ODataVocCap).

The `continue-on-error` preference SHOULD NOT be applied to individual
requests within a batch.
The `continue-on-error` preference on a batch request refers to whether individual
requests within a batch should be executed if others have failed. Whether an
individual request that represents multiple operations should continue on error can
instead be expressed through a `continue-on-error` preference on that individual
request.

Note: The `continue-on-error` preference was named
`odata.continue-on-error` in OData version 4.0. Services that support
Expand Down
7 changes: 5 additions & 2 deletions odata-protocol/8 Header Fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,11 @@ using an annotation with term
[`Capabilities.BatchContinueOnErrorSupported`]($$$OData-VocCap$$$#BatchContinueOnErrorSupported),
see [OData-VocCap](#ODataVocCap).

The `continue-on-error` preference SHOULD NOT be applied to individual
requests within a batch.
The `continue-on-error` preference on a batch request refers to whether individual
requests within a batch should be executed if others have failed. Whether an
individual request that represents multiple operations should continue on error can
instead be expressed through a `continue-on-error` preference on that individual
request.

Note: The `continue-on-error` preference was named
`odata.continue-on-error` in OData version 4.0. Services that support
Expand Down

0 comments on commit 988df24

Please sign in to comment.