File tree 2 files changed +19
-30
lines changed
2 files changed +19
-30
lines changed Original file line number Diff line number Diff line change 24
24
required : true
25
25
type : string
26
26
securityRole :
27
- type : string
27
+ type : string?
28
28
jsonKey : securityIndicator
29
29
mutableProperty :
30
- type : string
30
+ type : string?
31
31
non_final : true
32
32
dateChange :
33
- type : datetime
33
+ type : datetime?
34
34
fields :
35
- type : array
36
- items :
37
- type : List<Testing>
35
+ type : List<List<Testing>>?
38
36
simpleFields : List<Testing>
39
37
simpleMap : Map<String, Testing>?
40
38
@@ -48,20 +46,20 @@ Testing:
48
46
properties :
49
47
isFavourite :
50
48
ignore : true
51
- type : string
49
+ type : string?
52
50
structuredMessage :
53
- type : string
51
+ type : string?
54
52
beneficiary :
55
53
required : true
56
54
type : string
57
55
beneficiaryIBAN :
58
- type : string
56
+ type : string?
59
57
dynamicField :
60
- type : dynamic
58
+ type : dynamic?
61
59
duration :
62
- type : Duration
60
+ type : Duration?
63
61
duration_from_json_test :
64
- type : DurationFromToJson
62
+ type : DurationFromToJson?
65
63
66
64
AdminProfileData :
67
65
path : user/profile
@@ -107,23 +105,14 @@ UserProfileData:
107
105
type : OGM
108
106
offTrack :
109
107
include_if_null : false
110
- type : array
111
- items :
112
- type : string
108
+ type : List<string>?
113
109
onTrack :
114
110
include_if_null : true
115
- type : array
116
- items :
117
- type : OGM
111
+ type : List<OGM>?
118
112
persons :
119
- type : array
120
- items :
121
- type : Person
113
+ type : List<Person>?
122
114
personsById :
123
- type : map
124
- items :
125
- key : String
126
- value : Person
115
+ type : Map<String, Person>?
127
116
128
117
Person :
129
118
path : user/person/
@@ -150,13 +139,13 @@ CustomBaseDirectoryObj:
150
139
path : article
151
140
properties :
152
141
name :
153
- type : string
142
+ type : string?
154
143
155
144
NoCustomBaseDirectoryObj :
156
145
path : article
157
146
properties :
158
147
customBaseDirectoryObj :
159
- type : CustomBaseDirectoryObj
148
+ type : CustomBaseDirectoryObj?
160
149
161
150
DateTimeConverter :
162
151
type : json_converter
@@ -173,8 +162,8 @@ Project:
173
162
type : string
174
163
default_value : " 'test'"
175
164
cost :
176
- type : double
165
+ type : double?
177
166
default_value : 0.2
178
167
status :
179
- type : Status
168
+ type : Status?
180
169
unknown_enum_value : STATUS_0
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ class YmlGeneratorConfig {
366
366
}
367
367
368
368
ItemType _parseSimpleType (String type) {
369
- final listRegex = RegExp (r'^\s*[Ll]ist<\s*([a-zA-Z_0-9]*)\s*>\s*$' );
369
+ final listRegex = RegExp (r'^\s*[Ll]ist<\s*([a-zA-Z_0-9<> ]*)\s*>\s*$' );
370
370
final mapRegex =
371
371
RegExp (r'^\s*[Mm]ap<([a-zA-Z_0-9]*)\s*,\s*([a-zA-Z_0-9]*)\s*>\s*$' );
372
372
You can’t perform that action at this time.
0 commit comments