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 constraints #155

Merged
merged 31 commits into from
Aug 9, 2023
Merged

Implement config constraints #155

merged 31 commits into from
Aug 9, 2023

Conversation

jterapin
Copy link
Contributor

@jterapin jterapin commented Aug 3, 2023

Description of some notable changes:

  • Added a ConfigConstraint interface to keep all the constraint-related classes in check
  • Added RangeConstraint and TypeConstraint classes to render different constraint validators
  • Removed type from ClientConfig constructor as it is redundant since we have documentationType
  • Validator module in hearth will now validate other constraints such as range

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jterapin jterapin changed the title POC: Config Constraints Implement config constraints Aug 8, 2023
@jterapin jterapin marked this pull request as ready for review August 8, 2023 18:40
Copy link
Contributor

@alextwoods alextwoods left a comment

Choose a reason for hiding this comment

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

Nice - Looks good!

@jterapin jterapin merged commit f5c5592 into main Aug 9, 2023
20 checks passed
@jterapin jterapin deleted the config_constraint branch August 9, 2023 18:47
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.

3 participants