File tree 2 files changed +7
-6
lines changed
core/src/main/java/com/cosium/json_schema_to_java_record
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,10 @@ import javax.annotation.processing.Generated;
206
206
207
207
@Generated (" com.cosium.json_schema_to_java_record_api.GenerateRecordsFromJsonSchemas" )
208
208
public enum Country {
209
- MOROCCO ,
210
- FRANCE
209
+ FRANCE ,
210
+ MOROCCO
211
211
}
212
+
212
213
```
213
214
214
215
## Making a generated type implement interfaces
@@ -248,8 +249,8 @@ import javax.annotation.processing.Generated;
248
249
249
250
@Generated (" com.cosium.json_schema_to_java_record_api.GenerateRecordsFromJsonSchemas" )
250
251
public enum Country implements Location {
251
- MOROCCO ,
252
- FRANCE
252
+ FRANCE ,
253
+ MOROCCO
253
254
}
254
255
```
255
256
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ record JsonSchemaContent(
33
33
Type type ,
34
34
@ Nullable String format ,
35
35
@ Nullable JsonSchemaContent items ,
36
- @ Nullable Set <Object > enumeration ,
36
+ @ Nullable List <Object > enumeration ,
37
37
Map <String , JsonSchemaContent > properties ,
38
38
Set <String > required ) {
39
39
@@ -46,7 +46,7 @@ record JsonSchemaContent(
46
46
@ JsonProperty ("type" ) @ Nullable String type ,
47
47
@ JsonProperty ("format" ) @ Nullable String format ,
48
48
@ JsonProperty ("items" ) @ Nullable JsonSchemaContent items ,
49
- @ JsonProperty ("enum" ) @ Nullable Set <Object > enumeration ,
49
+ @ JsonProperty ("enum" ) @ Nullable List <Object > enumeration ,
50
50
@ JsonProperty ("properties" ) @ Nullable Map <String , JsonSchemaContent > properties ,
51
51
@ JsonProperty ("required" ) @ Nullable Set <String > required ) {
52
52
this (
You can’t perform that action at this time.
0 commit comments