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

Pass requiredwith validation if defaultfunc present #1153

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matt-potter
Copy link

Schema validation fails on RequiredWith even when a DefaultFunc is specified. Added a check to return nil if a defaultfunc is provided. The correctness of the defaultfunc is checked as a first step in the main validate func, so I believe just checking for presence here is sufficient?

Related issues here

@matt-potter matt-potter requested a review from a team as a code owner February 20, 2023 12:16
@hashicorp-cla
Copy link

hashicorp-cla commented Feb 20, 2023

CLA assistant check
All committers have signed the CLA.

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.

None yet

2 participants