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

Ensure dive validation rule is present on API resource fields where necessary #571

Open
mansam opened this issue Dec 4, 2023 · 0 comments

Comments

@mansam
Copy link
Collaborator

mansam commented Dec 4, 2023

The validator used by Gin will validate nested structs, but will not validate a slice of structs unless the binding field tag specifies the dive keyword. This means that things like lists of refs are not being validated correctly. We need to make a pass through the API and ensure that the dive key is present on every slice that needs to be validated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant