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

validator support in miniconf #197

Closed
jordens opened this issue Apr 8, 2024 · 0 comments · Fixed by #198
Closed

validator support in miniconf #197

jordens opened this issue Apr 8, 2024 · 0 comments · Fixed by #198

Comments

@jordens
Copy link
Member

jordens commented Apr 8, 2024

Maybe it's better to move the validation callbacks out of the mqtt client into miniconf derive, like serde attributes #186 .

  • More focused validation as opposed to the "global" validator currently
  • Easier abort on validation fail before setting things, no need to keep backup for roll-back
  • Unclear how array and option would support these focused validators, maybe not at all
  • Multiple field level validators or a single struct level or both
jordens added a commit that referenced this issue Apr 12, 2024
@jordens jordens linked a pull request Apr 12, 2024 that will close this issue
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 a pull request may close this issue.

1 participant