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

Extended validation options for plugin schema #158

Closed
Andrew-Morozko opened this issue Apr 19, 2024 · 0 comments · Fixed by #162
Closed

Extended validation options for plugin schema #158

Andrew-Morozko opened this issue Apr 19, 2024 · 0 comments · Fixed by #162
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Andrew-Morozko
Copy link
Contributor

Andrew-Morozko commented Apr 19, 2024

Replace a lot of custom schema validation with generic validators. In order of usefulness in our code:

  • validators.OneOf() validates that the value provided is one of the given values
  • validators.Int() checks that the number is an integer
  • validators.Less,validators.Greater, validators.LessThanOrEqual, validators.InRangeInclusive - self-explanatory
  • validators.Deprecated() produces a diagnostic warning if the value is non-null
@Andrew-Morozko Andrew-Morozko self-assigned this Apr 19, 2024
@traut traut added this to the v0.4 milestone Apr 22, 2024
@traut traut added the enhancement New feature or request label Apr 22, 2024
@Andrew-Morozko Andrew-Morozko linked a pull request May 5, 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
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants