1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
package com.github.reinert.jjschema; |
20 |
|
|
21 |
|
import java.lang.annotation.ElementType; |
22 |
|
import java.lang.annotation.Retention; |
23 |
|
import java.lang.annotation.RetentionPolicy; |
24 |
|
import java.lang.annotation.Target; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
|
31 |
|
@Retention(RetentionPolicy.RUNTIME) |
32 |
|
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.TYPE }) |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
33 |
|
public @interface Attributes |
34 |
|
{ |
35 |
|
String $ref() default ""; |
36 |
|
|
37 |
|
String id() default ""; |
38 |
|
|
39 |
|
String title() default ""; |
40 |
|
|
41 |
|
String description() default ""; |
42 |
|
|
43 |
|
long maximum() default -1l; |
44 |
|
|
45 |
|
boolean exclusiveMaximum() default false; |
46 |
|
|
47 |
|
int minimum() default -1; |
48 |
|
|
49 |
|
boolean exclusiveMinimum() default false; |
50 |
|
|
51 |
|
String pattern() default ""; |
52 |
|
|
53 |
|
boolean required() default false; |
54 |
|
|
55 |
|
String[] enums() default {}; |
56 |
|
|
57 |
|
int minItems() default 0; |
58 |
|
|
59 |
|
long maxItems() default -1l; |
60 |
|
|
61 |
|
boolean uniqueItems() default false; |
62 |
|
|
63 |
|
int multipleOf() default 0; |
64 |
|
|
65 |
|
int minLength() default 0; |
66 |
|
|
67 |
|
long maxLength() default -1l; |
68 |
|
} |