Skip to content

Parsing recursive annotations #335

Closed Answered by CarstenWickner
roded asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @roded,

Not out-of-the-box right now.
Edit: starting with release 4.30.0, this is in fact supported by the jakarta and javax validation modules without requiring further configuration. Until then, the below workaround can still be used.

I've created an example, that covers this requirement at least partially:

public class GroupedAnnotationExample {

    public ObjectNode generateSchema() {
        SchemaGeneratorConfig config = new SchemaGeneratorConfigBuilder(SchemaVersion.DRAFT_2019_09, OptionPreset.PLAIN_JSON)
                .with(new GroupedAnnotationAwareJakartaValidationModule(JakartaValidationOption.INCLUDE_PATTERN_EXPRESSIONS))
                .build();
        SchemaGenerator g…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@CarstenWickner
Comment options

@roded
Comment options

@CarstenWickner
Comment options

@roded
Comment options

@CarstenWickner
Comment options

Answer selected by roded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants