12
12
import org .openapijsonschematools .client .schemas .validation .FrozenList ;
13
13
import org .openapijsonschematools .client .schemas .validation .FrozenMap ;
14
14
import org .openapijsonschematools .client .schemas .validation .JsonSchema ;
15
+ import org .openapijsonschematools .client .schemas .validation .JsonSchemaFactory ;
15
16
import org .openapijsonschematools .client .schemas .validation .KeywordEntry ;
16
17
import org .openapijsonschematools .client .schemas .validation .KeywordValidator ;
17
18
import org .openapijsonschematools .client .schemas .validation .PropertiesValidator ;
@@ -37,7 +38,7 @@ public static class AdditionalpropertiesAreAllowedByDefaultMap extends FrozenMap
37
38
"bar"
38
39
);
39
40
public static AdditionalpropertiesAreAllowedByDefaultMap of (Map <String , Object > arg , SchemaConfiguration configuration ) throws ValidationException {
40
- return AdditionalpropertiesAreAllowedByDefault1 .validate (arg , configuration );
41
+ return JsonSchemaFactory . getInstance ( AdditionalpropertiesAreAllowedByDefault1 . class ) .validate (arg , configuration );
41
42
}
42
43
43
44
public Object foo () {
@@ -63,68 +64,71 @@ public class AdditionalpropertiesAreAllowedByDefaultMapInput {
63
64
}
64
65
65
66
66
- public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema {
67
+ public static class AdditionalpropertiesAreAllowedByDefault1 extends JsonSchema < AdditionalpropertiesAreAllowedByDefaultMap , FrozenList > {
67
68
/*
68
69
NOTE: This class is auto generated by OpenAPI JSON Schema Generator.
69
70
Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
70
71
71
72
Do not edit the class manually.
72
73
*/
73
- public static final LinkedHashMap <String , KeywordValidator > keywordToValidator = new LinkedHashMap <>(Map .ofEntries (
74
- new KeywordEntry ("properties" , new PropertiesValidator (Map .ofEntries (
75
- new PropertyEntry ("foo" , Foo .class ),
76
- new PropertyEntry ("bar" , Bar .class )
77
- )))
78
- ));
74
+ public AdditionalpropertiesAreAllowedByDefault1 () {
75
+ super (new LinkedHashMap <>(Map .ofEntries (
76
+ new KeywordEntry ("properties" , new PropertiesValidator (Map .ofEntries (
77
+ new PropertyEntry ("foo" , Foo .class ),
78
+ new PropertyEntry ("bar" , Bar .class )
79
+ )))
80
+ )));
81
+ }
79
82
80
- protected static AdditionalpropertiesAreAllowedByDefaultMap getMapOutputInstance (FrozenMap <String , Object > arg ) {
81
- return new AdditionalpropertiesAreAllowedByDefaultMap (arg );
83
+ @ Override
84
+ protected AdditionalpropertiesAreAllowedByDefaultMap getMapOutputInstance (FrozenMap <?, ?> arg ) {
85
+ return new AdditionalpropertiesAreAllowedByDefaultMap ((FrozenMap <String , Object >) arg );
82
86
}
83
- public static Void validate (Void arg , SchemaConfiguration configuration ) throws ValidationException {
84
- return JsonSchema . validateVoid (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
87
+ public Void validate (Void arg , SchemaConfiguration configuration ) throws ValidationException {
88
+ return validateVoid (arg , configuration );
85
89
}
86
90
87
- public static boolean validate (boolean arg , SchemaConfiguration configuration ) throws ValidationException {
88
- return JsonSchema . validateBoolean (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
91
+ public boolean validate (boolean arg , SchemaConfiguration configuration ) throws ValidationException {
92
+ return validateBoolean (arg , configuration );
89
93
}
90
94
91
- public static int validate (int arg , SchemaConfiguration configuration ) throws ValidationException {
92
- return JsonSchema . validateInt (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
95
+ public int validate (int arg , SchemaConfiguration configuration ) throws ValidationException {
96
+ return validateInt (arg , configuration );
93
97
}
94
98
95
- public static long validate (long arg , SchemaConfiguration configuration ) throws ValidationException {
96
- return JsonSchema . validateLong (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
99
+ public long validate (long arg , SchemaConfiguration configuration ) throws ValidationException {
100
+ return validateLong (arg , configuration );
97
101
}
98
102
99
- public static float validate (float arg , SchemaConfiguration configuration ) throws ValidationException {
100
- return JsonSchema . validateFloat (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
103
+ public float validate (float arg , SchemaConfiguration configuration ) throws ValidationException {
104
+ return validateFloat (arg , configuration );
101
105
}
102
106
103
- public static double validate (double arg , SchemaConfiguration configuration ) throws ValidationException {
104
- return JsonSchema . validateDouble (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
107
+ public double validate (double arg , SchemaConfiguration configuration ) throws ValidationException {
108
+ return validateDouble (arg , configuration );
105
109
}
106
110
107
- public static String validate (String arg , SchemaConfiguration configuration ) throws ValidationException {
108
- return JsonSchema . validateString (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
111
+ public String validate (String arg , SchemaConfiguration configuration ) throws ValidationException {
112
+ return validateString (arg , configuration );
109
113
}
110
114
111
- public static String validate (ZonedDateTime arg , SchemaConfiguration configuration ) throws ValidationException {
112
- return JsonSchema . validateZonedDateTime (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
115
+ public String validate (ZonedDateTime arg , SchemaConfiguration configuration ) throws ValidationException {
116
+ return validateZonedDateTime (arg , configuration );
113
117
}
114
118
115
- public static String validate (LocalDate arg , SchemaConfiguration configuration ) throws ValidationException {
116
- return JsonSchema . validateLocalDate (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
119
+ public String validate (LocalDate arg , SchemaConfiguration configuration ) throws ValidationException {
120
+ return validateLocalDate (arg , configuration );
117
121
}
118
122
119
- public static String validate (UUID arg , SchemaConfiguration configuration ) throws ValidationException {
120
- return JsonSchema . validateUUID (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
123
+ public String validate (UUID arg , SchemaConfiguration configuration ) throws ValidationException {
124
+ return validateUUID (arg , configuration );
121
125
}
122
126
123
- public static AdditionalpropertiesAreAllowedByDefaultMap validate (Map <String , Object > arg , SchemaConfiguration configuration ) throws ValidationException {
124
- return JsonSchema . validateMap (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
127
+ public AdditionalpropertiesAreAllowedByDefaultMap validate (Map <String , Object > arg , SchemaConfiguration configuration ) throws ValidationException {
128
+ return validateMap (arg , configuration );
125
129
}
126
130
127
- public static FrozenList <Object > validate (List <Object > arg , SchemaConfiguration configuration ) throws ValidationException {
128
- return JsonSchema . validateList (AdditionalpropertiesAreAllowedByDefault1 . class , arg , configuration );
131
+ public FrozenList <Object > validate (List <Object > arg , SchemaConfiguration configuration ) throws ValidationException {
132
+ return validateList (arg , configuration );
129
133
}
130
134
}}
0 commit comments