fix(workers_script): add missing "worker_loader" binding type with acceptance test - #7310
Open
jackemcpherson wants to merge 1 commit into
Open
Conversation
…ceptance test Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
jackemcpherson
marked this pull request as ready for review
August 14, 2026 22:03
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.
Changes being requested
The
cloudflare_workers_scriptresource reads aworker_loaderbinding from adeployed Worker into state, but the schema validator rejects the same type in
configuration with
Invalid Attribute Value Match. Any Worker with a WorkerLoader binding therefore shows a permanent plan diff that proposes removal of a
binding the configuration cannot declare.
This change mirrors #6912, which fixed the same defect class for the
ratelimittype:worker_loaderto theOneOfCaseInsensitivevalidator list and to thetypeattribute description ininternal/services/workers_script/schema.go.docs/resources/workers_script.md.A
worker_loaderbinding needs onlynameandtype. Both attributes alreadyexist in the model and the Read path already decodes the type, so no model
changes are needed.
schema.gois generated by Stainless. This is a hand patch, as in #6912, sothe OpenAPI spec may need reconciliation.
Fixes #7309
Acceptance test run results
Steps to run acceptance tests
Test output
Additional context & links
The equivalent Wrangler configuration for this binding is
worker_loaders = [{ binding = "LOADER" }].