Skip to content

fix: clone inherits validate deprecated - #757

Merged
pavelnikolov merged 1 commit into
mainfrom
fix-clone-copy-deprecated
May 19, 2026
Merged

fix: clone inherits validate deprecated#757
pavelnikolov merged 1 commit into
mainfrom
fix-clone-copy-deprecated

Conversation

@pavelnikolov

Copy link
Copy Markdown
Member

Cloned schema inherits validateDeprecated field.

Copilot AI review requested due to automatic review settings May 19, 2026 23:54
@pavelnikolov
pavelnikolov merged commit 662c575 into main May 19, 2026
4 checks passed
@pavelnikolov
pavelnikolov deleted the fix-clone-copy-deprecated branch May 19, 2026 23:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 configuration inheritance bug in Schema.Clone: cloned schemas now correctly inherit the validateDeprecated setting from the parent schema, ensuring deprecated-field validation behavior remains consistent across clones.

Changes:

  • Copy validateDeprecated from the parent schema into the cloned schema configuration.
  • Add a regression test to ensure a clone inherits ValidateDeprecated() behavior without needing to reapply the option.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
graphql.go Ensure Schema.Clone copies validateDeprecated into the cloned schema config.
graphql_test.go Add regression test verifying cloned schemas inherit deprecated validation.

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

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