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

⚙️ Implement config validation #40

Closed
roma-glushko opened this issue Dec 26, 2023 · 0 comments · Fixed by #98
Closed

⚙️ Implement config validation #40

roma-glushko opened this issue Dec 26, 2023 · 0 comments · Fixed by #98

Comments

@roma-glushko
Copy link
Member

No description provided.

@roma-glushko roma-glushko self-assigned this Jan 16, 2024
@roma-glushko roma-glushko changed the title Implement config validation ⚙️ Implement config validation Jan 21, 2024
roma-glushko added a commit that referenced this issue Jan 21, 2024
roma-glushko added a commit that referenced this issue Jan 21, 2024
roma-glushko added a commit that referenced this issue Jan 21, 2024
roma-glushko added a commit that referenced this issue Jan 21, 2024
@roma-glushko roma-glushko linked a pull request Jan 21, 2024 that will close this issue
roma-glushko added a commit that referenced this issue Jan 22, 2024
- Made sure it's not possible to override the required fields by nil values accidentally by misformatting the config file
- used github.com/go-playground/validator/v10 for config validation
- created custom validation errors
- Made sure router and model IDs are unique
- Made sure there is at least one lang router configured
- Made sure that each router has at least one model configured
- Warn users in case there is only one model in the router's pool
roma-glushko added a commit that referenced this issue Jan 22, 2024
# Changelog

## Improvements

- ⚙️ [config] Added validation for config file content #40 (@roma-glushko)
- ⚙️ [config] Allowed to pass HTTP server configs from config file #41 (@roma-glushko)
- 👷 [build] Allowed building Homebrew taps for release candidates #99 (@roma-glushko)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant