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

Empty struct validation #193

Open
satyap07 opened this issue Feb 25, 2024 · 0 comments
Open

Empty struct validation #193

satyap07 opened this issue Feb 25, 2024 · 0 comments

Comments

@satyap07
Copy link

Came across a use case where I'm trying to validate a request payload structure, the fields in the payload can be validated but since they are optional how should I validate that there should be at least one populated field in the structure. In other words, I want to write a validation for empty struct.

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

No branches or pull requests

1 participant