Skip to content

docs: fix ETag table typo#583

Open
Rohan5commit wants to merge 1 commit intomicrosoft:vNextfrom
Rohan5commit:docs/fix-etag-occurred-20260427
Open

docs: fix ETag table typo#583
Rohan5commit wants to merge 1 commit intomicrosoft:vNextfrom
Rohan5commit:docs/fix-etag-occurred-20260427

Conversation

@Rohan5commit
Copy link
Copy Markdown

Summary

  • fix the "ocurred" typo in the ETag precondition guidance table

Related issue

  • N/A (trivial documentation typo fix)

Guideline alignment

  • follows CONTRIBUTING.md documentation guidance and targets the vNext branch
  • keeps the change to a single documentation sentence with no behavior impact

Validation

  • ran git diff --check

Copilot AI review requested due to automatic review settings April 27, 2026 02:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a documentation typo in the Azure REST API guidelines’ ETag precondition processing table.

Changes:

  • Corrects the typo “ocurred” → “occurred” in the If-Match precondition guidance row.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread azure/Guidelines.md
| PATCH / PUT | `If-None-Match` | * | check for _any_ version of the resource, if one is found, fail the operation | `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` equals the latest ETag value on the server, confirming that the version of the resource is the most current | `200-OK` or </br> `201-Created` </br> | Response header MUST include the new `ETag` value. Response body SHOULD include the serialized value of the resource (typically JSON). |
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` header DOES NOT equal the latest ETag value on the server, indicating a change has ocurred since after the client fetched the resource| `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` header DOES NOT equal the latest ETag value on the server, indicating a change has occurred since after the client fetched the resource| `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "since after the client fetched the resource" is grammatically incorrect/redundant. Consider rewording to "since the client fetched the resource" (or similar) for clarity.

Copilot uses AI. Check for mistakes.
Comment thread azure/Guidelines.md
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` header DOES NOT equal the latest ETag value on the server, indicating a change has ocurred since after the client fetched the resource| `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` header DOES NOT equal the latest ETag value on the server, indicating a change has occurred since after the client fetched the resource| `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
| DELETE | `If-Match` | value of ETag | value matches the latest value on the server | `204-No Content` | Response body SHOULD be empty. |
| DELETE | `If-Match` | value of ETag | value does NOT match the latest value on the server | `412-Preconditioned Failed` | Response body SHOULD be empty.|
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the DELETE + If-Match row, the status text is written as 412-Preconditioned Failed; the standard reason phrase is 412-Precondition Failed (as used elsewhere in this table).

Copilot uses AI. Check for mistakes.
Comment thread azure/Guidelines.md
Comment on lines 1235 to 1237
| PATCH / PUT | `If-None-Match` | * | check for _any_ version of the resource ('*' is a wildcard used to match anything), if none are found, create the resource. | `200-OK` or </br> `201-Created` </br> | Response header MUST include the new `ETag` value. Response body SHOULD include the serialized value of the resource (typically JSON). |
| PATCH / PUT | `If-None-Match` | * | check for _any_ version of the resource, if one is found, fail the operation | `412-Precondition Failed` | Response body SHOULD return the serialized value of the resource (typically JSON) that was passed along with the request.|
| PATCH / PUT | `If-Match` | value of ETag | value of `If-Match` equals the latest ETag value on the server, confirming that the version of the resource is the most current | `200-OK` or </br> `201-Created` </br> | Response header MUST include the new `ETag` value. Response body SHOULD include the serialized value of the resource (typically JSON). |
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return-code column uses </br> for line breaks, but br is a void HTML element (end tag is invalid) and the rest of the repo appears to use <br/>. Please replace </br> with a valid <br/>/<br /> to ensure consistent rendering.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants