-
Notifications
You must be signed in to change notification settings - Fork 445
Closed
Milestone
Description
is there a way to use jakarta.validation-api with plain picocli (without Springboot/Hibernate etc.)? it may be silly but I'm trying to use it as it is but is doesn't work.
Example:
@CommandLine.Parameters(description = "Is to show sum calculation? (values: true, false)")
private boolean isDetailed;
@Positive
@CommandLine.Parameters(description = "How many roles should the program make?")
private long roles;
@Min(3)
@CommandLine.Parameters(description = "Used to tell the number of side the dice has.")
private int d;
@PositiveOrZero
@CommandLine.Parameters(
description = "Used to be added per role.",
defaultValue = "0"
)
private int constantAddition;