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

Remove confusing no-op validate: tags. #1251

Merged
merged 1 commit into from
Jan 8, 2020
Merged

Remove confusing no-op validate: tags. #1251

merged 1 commit into from
Jan 8, 2020

Conversation

porridge
Copy link
Member

@porridge porridge commented Jan 7, 2020

What this PR does / why we need it:

My guess is that they were meant for https://github.com/go-validator/validator
but this library does not seem to be used (any more?).

We do not seem to be using these tags for anything, they are not enforced, and
the current codebase violates them.

I did try to make the CRD validation markers match the tags in the process of
fixing #862, but there is plenty of test code which violates those rules, so it
would be a bigger task at this point.

Since these tags contradict the +optional markers on directly preceding lines,
it is best we reduce confusion by removing them.

Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

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

Thank you!

@porridge porridge merged commit c953e30 into master Jan 8, 2020
@porridge porridge deleted the validation-fix branch January 8, 2020 09:47
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
My guess is that they were meant for https://github.com/go-validator/validator
but this library does not seem to be used (any more?).

We do not seem to be using these tags for anything, they are not enforced, and
the current codebase violates them.

I did try to make the CRD validation markers match the tags in the process of
fixing #862, but there is plenty of test code which violates those rules, so it
would be a bigger task at this point.

Since these tags contradict the +optional markers on directly preceding lines,
it is best we reduce confusion by removing them.

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
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

4 participants