Skip to content

Add client capabilities into the validator request for write only #283

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yottta
Copy link

@yottta yottta commented Apr 10, 2025

Fixes #282.

The PreferWriteOnlyAttribute validator is misconfigured in terms that the client capabilities received in the request are not given to the validator. Therefore, any call to validate will return no error rendering the validator useless.

This PR is passing over the client capabilities to the validator.

@yottta yottta requested a review from a team as a code owner April 10, 2025 14:18
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

@yottta
Copy link
Author

yottta commented Apr 10, 2025

I will read and sign the CLA next week. In case somebody that is already having this signed can apply the changes, please, go ahead.

@rainkwan
Copy link

Hi @yottta, thank you for the contribution!

In addition to signing the CLA, can you also add a changelog entry for this PR marked as BUG FIXES?

@rainkwan rainkwan added this to the v0.18.0 milestone Apr 14, 2025
This was referenced Apr 21, 2025
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.

PreferWriteOnlyAttribute validator is not making use of the client capabilities
2 participants