File tree Expand file tree Collapse file tree
openapi-processor-core/src/testInt/resources
tests/bean-validation-mapping-supported Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package jakarta .validation .constraints ;
2+
3+ import java .lang .annotation .Documented ;
4+ import java .lang .annotation .Retention ;
5+ import java .lang .annotation .Target ;
6+
7+ import static java .lang .annotation .ElementType .FIELD ;
8+ import static java .lang .annotation .ElementType .PARAMETER ;
9+ import static java .lang .annotation .RetentionPolicy .RUNTIME ;
10+
11+ @ Retention (RUNTIME )
12+ @ Target ({ FIELD , PARAMETER })
13+ public @interface DecimalMax {
14+ String value ();
15+ }
Original file line number Diff line number Diff line change 1+ package io .oap ;
2+
3+ public class CustomInteger {}
Original file line number Diff line number Diff line change 1+ items :
2+ - compile/oap/CustomInteger.java
3+ - compile/jakarta/DecimalMin.java
4+ - compile/jakarta/DecimalMax.java
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ options:
88map :
99 types :
1010 - type : integer:year => java.time.Year
11- - type : integer:other => other .CustomInteger
11+ - type : integer:other => io.oap .CustomInteger
1212
1313bean-validation :
1414 jakarta.validation.constraints.DecimalMin :
15- - other .CustomInteger
15+ - io.oap .CustomInteger
1616 jakarta.validation.constraints.DecimalMax :
17- - other .CustomInteger
17+ - io.oap .CustomInteger
Original file line number Diff line number Diff line change 77import jakarta .validation .constraints .DecimalMax ;
88import jakarta .validation .constraints .DecimalMin ;
99import java .time .Year ;
10- import other .CustomInteger ;
10+ import io . oap .CustomInteger ;
1111
1212@ Generated (value = "openapi-processor-core" , version = "test" )
1313public interface Api {
You can’t perform that action at this time.
0 commit comments