Fix description of the apply argument on the @authorize directive#9404
Merged
Fix description of the apply argument on the @authorize directive#9404
apply argument on the @authorize directive#9404Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the documentation text for the apply argument on the @authorize GraphQL directive to correct a typo and accurately describe the default behavior.
Changes:
- Fixes duplicated word “when when” in the
applyargument description. - Updates the default-behavior text from “validation phase” to “before the resolver is executed”.
- Regenerates affected GraphQL schema snapshot outputs to reflect the updated description.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/HotChocolate/Core/src/Authorization/AuthorizeDirectiveType.cs | Updates the apply argument description text on @authorize. |
| src/HotChocolate/Core/test/Authorization.Tests/snapshots/SchemaFirstAuthorizationTests.Authorize_Apply_Can_Be_Omitted.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/Core/test/Authorization.Tests/snapshots/AnnotationBasedAuthorizationTests.Authorize_Node_Field_Schema.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.TypeAuth_WithRoles.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.TypeAuth_WithPolicy.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.TypeAuth_DefaultPolicy.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_WithRoles.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_WithPolicy_Validation.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_WithPolicy_BeforeResolver.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_WithPolicy_AfterResolver.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_WithPolicy.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_DefaultPolicy_Validation.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_DefaultPolicy_BeforeResolver.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_DefaultPolicy_AfterResolver.graphql | Updates snapshot to match the corrected directive argument description. |
| src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/snapshots/AuthorizeDirectiveTests.FieldAuth_DefaultPolicy.graphql | Updates snapshot to match the corrected directive argument description. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced May 1, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the changes (Less than 80 chars)
applyargument on the@authorizedirective.