Skip to content

Commit 6e18772

Browse files
committed
compile integration test (#290)
1 parent d327ba6 commit 6e18772

5 files changed

Lines changed: 26 additions & 4 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package io.oap;
2+
3+
public class CustomInteger {}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
items:
2+
- compile/oap/CustomInteger.java
3+
- compile/jakarta/DecimalMin.java
4+
- compile/jakarta/DecimalMax.java

openapi-processor-core/src/testInt/resources/tests/bean-validation-mapping-supported/inputs/mapping.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ options:
88
map:
99
types:
1010
- type: integer:year => java.time.Year
11-
- type: integer:other => other.CustomInteger
11+
- type: integer:other => io.oap.CustomInteger
1212

1313
bean-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

openapi-processor-core/src/testInt/resources/tests/bean-validation-mapping-supported/outputs/api/Api.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import jakarta.validation.constraints.DecimalMax;
88
import jakarta.validation.constraints.DecimalMin;
99
import java.time.Year;
10-
import other.CustomInteger;
10+
import io.oap.CustomInteger;
1111

1212
@Generated(value = "openapi-processor-core", version = "test")
1313
public interface Api {

0 commit comments

Comments
 (0)