Closed gmitch215 closed 1 year ago
This sounds like an excellent use case for parameter validators, see https://github.com/Revxrsal/Lamp/wiki/Parameter-validators. There's a good chance it may be natively added later as it could be used by brigadier.
Also: I would recommend creating a build script that automatically updates the JavaDocs instead of manually copying files. Thanks, I'll take a look. They are currently neglected as I believe most people either look at the wiki, examples, or inspect code themselves.
Hello,
I am proposing to add a
@Length
annotation that would create a minimum/maximum length for Strings. I'm pretty sure this is natively supported by brigadier, but I'm not sure. I couldn't find an existing annotation that exists for this purpose, so I'm proposing a new one.It would look like this:
Could be used in scenarios like this:
Also: I would recommend creating a build script that automatically updates the JavaDocs instead of manually copying files.