-
Notifications
You must be signed in to change notification settings - Fork 179
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
Config validators #2090
Config validators #2090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should make everything a float instead of an int (cast to float), and need greaterthaneq and lessthaneq
Exiled.API/Features/Attributes/Validators/PossibleValuesAttribute.cs
Outdated
Show resolved
Hide resolved
Switch to <paramref> instead of <param>.
@NaoUnderscore Is this PR 'Do Not Merge'? |
After testing, here are the issues I have noted:
More notes may be added as we discover more issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok.
The docs are lacking. |
We'll work on some documentation asap. |
|
Take a look at my review |
feat: update docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
This PR offers attributes for validating config values.
It supports making own validators (just make a new attribute that implements IValidator)
Changes
Related suggestions
Tasks