Skip to content

jakarta.validation-api with picocli #1798

@ashr123

Description

@ashr123

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;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions