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

Expose result info messages #1106

Merged

Conversation

jacobbednarz
Copy link
Member

The messages field isn't really used broadly in the API as it was designed for
informational feedback as opposed to errors, however, the page rules endpoint
uses it to communicate validation failures. For these messages to be raised in
other tools, namely the Terraform provider, it needs a dedicated field on the
struct and to be included in the Error() method.

Closes cloudflare/terraform-provider-cloudflare#1579

@jacobbednarz jacobbednarz force-pushed the expose-result-info-messages branch 2 times, most recently from cf2084c to 14877f6 Compare October 17, 2022 02:14
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

changelog detected ✅

The messages field isn't really used broadly in the API as it was designed for
informational feedback as opposed to errors, however, the page rules endpoint
uses it to communicate validation failures. For these messages to be raised in
other tools, namely the Terraform provider, it needs a dedicated field on the
struct and to be included in the `Error()` method.

Closes cloudflare/terraform-provider-cloudflare#1579
@jacobbednarz jacobbednarz merged commit 6bbc8e3 into cloudflare:master Oct 17, 2022
@jacobbednarz jacobbednarz deleted the expose-result-info-messages branch October 17, 2022 02:17
@github-actions github-actions bot added this to the v0.53.0 milestone Oct 17, 2022
github-actions bot pushed a commit that referenced this pull request Oct 17, 2022
@github-actions
Copy link
Contributor

This functionality has been released in v0.53.0.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

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.

Page rule validation error message not being returned
1 participant