FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make Rule.conditions readonly (fixes #419) by emilefokkemanavara · Pull Request #420 · CacheControl/json-rules-engine · GitHub

Make Rule.conditions readonly (fixes #419) - #420

Merged
chris-pardy merged 3 commits into
CacheControl:masterfrom
emilefokkemanavara:issue/419/rule-conditions-readonly
Feb 16, 2026
Merged

chris-pardy merged 3 commits into
CacheControl:masterfrom
emilefokkemanavara:issue/419/rule-conditions-readonly

Conversation

emilefokkemanavara commented May 29, 2025 •
edited
Loading

Copy link
Copy Markdown
Contributor

This

  • changes a test to use the correct setter method to change a Rule's conditions
  • adds a test that shows that Rule.conditions is not the right setter
  • marks Rule.conditions as readonly in the types

Fixes #419

emilefokkemanavara changed the title Make Rule.conditions readonly Make Rule.conditions readonly (fixes #419) May 29, 2025
chris-pardy merged commit 7740f33 into CacheControl:master Feb 16, 2026

chris-pardy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good — clean fix with tests. Thanks @emilefokkemanavara!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typings incorrectly suggest that Rule.conditions is a setter

3 participants


Back | FazBrowse Home | New Git URL