Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unexpected validation error when ttl is set with variable #4414

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

digglife
Copy link

@digglife digglife commented Oct 24, 2024

When default is set with variable, it will be unknown in the request sent to the plugin, so the validation will fail. With this change, the plugin can handle this case correctly.

The validation still works when mode is override_origin and default is not set(which will be null) or <=0.

fixes: #4412

Copy link
Contributor

github-actions bot commented Oct 24, 2024

changelog detected ✅

@digglife
Copy link
Author

digglife commented Nov 6, 2024

Hi @jacobbednarz
Could you please kindly review this PR? Thanks!

Issue: #4412

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.

Unexpected Validation Error for TTL Settings of cloudflare_ruleset
1 participant