Skip to content

missing import for javax.validation.constraints.Pattern #141

Closed

Description

@kugelstachelfisch

Hi there, thanks for the great job!
I've found a minor issue:

When array-elements of type string are described by a pattern and the array is mapped to java.util.List, the import for @Pattern-Annotation is missing.

I've tested with openapi-processor-spring V2022.3.

A minimal testcase is attached. Without the line import javax.validation.constraints.Pattern;, the test runs successfully, but the import is required to compile.

list-pattern-missing-import.zip

Activity

  1. hauner commented on May 18, 2022

    @hauner
    Member

    yep, looks like a bug. Thanks for the test-case :-)

  2. modified the milestones: core: next, 2022.4 on May 18, 2022
  3. hauner commented on May 29, 2022

    @hauner
    Member

    fix is available in openapi-processor-spring 2022.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions