File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 9
9
properties :
10
10
structuredMessage : String?
11
11
beneficiary :
12
- required : true
13
12
type : String
14
13
beneficiaryIBAN :
15
- required : true
16
14
type : String
17
15
test_Test :
18
- required : true
19
16
type : String
20
17
some_Thing :
21
- required : true
22
18
type : String
23
19
some_ThinG_huGE :
24
- required : true
25
20
type : String
26
21
securityRole :
27
22
type : String?
@@ -50,7 +45,6 @@ Testing:
50
45
structuredMessage :
51
46
type : String?
52
47
beneficiary :
53
- required : true
54
48
type : String
55
49
beneficiaryIBAN :
56
50
type : String?
@@ -66,15 +60,13 @@ AdminProfileData:
66
60
extends : UserProfileDataExtended
67
61
properties :
68
62
privileges :
69
- required : true
70
63
type : String
71
64
72
65
UserProfileDataExtended :
73
66
path : user/profile
74
67
extends : UserProfileData
75
68
properties :
76
69
additionalField :
77
- required : true
78
70
type : String
79
71
80
72
UserProfileData :
@@ -83,25 +75,18 @@ UserProfileData:
83
75
explicit_to_json : true
84
76
properties :
85
77
firstName :
86
- required : true
87
78
type : String
88
79
lastName :
89
- required : true
90
80
type : String
91
81
standardLanguage :
92
- required : true
93
82
type : String
94
83
mainAccountNumber :
95
- required : true
96
84
type : String
97
85
legalEmail :
98
- required : true
99
86
type : String
100
87
phones :
101
- required : true
102
88
type : Testing
103
89
legalAddress :
104
- required : true
105
90
type : OGM
106
91
offTrack :
107
92
include_if_null : false
@@ -119,10 +104,8 @@ Person:
119
104
type : object
120
105
properties :
121
106
firstName :
122
- required : true
123
107
type : String
124
108
gender :
125
- required : true
126
109
unknown_enum_value : X
127
110
type : Gender
128
111
@@ -158,7 +141,6 @@ Project:
158
141
static_create : true
159
142
properties :
160
143
name :
161
- required : true
162
144
type : String
163
145
default_value : " 'test'"
164
146
cost :
Original file line number Diff line number Diff line change @@ -180,6 +180,10 @@ class YmlGeneratorConfig {
180
180
Field getField (String name, YamlMap property,
181
181
{required bool disallowNullForDefaults}) {
182
182
try {
183
+ if (property.containsKey ('required' )) {
184
+ throw ArgumentError (
185
+ 'required is removed, follow the migration to version 7.0.0' );
186
+ }
183
187
final ignored =
184
188
property.containsKey ('ignore' ) && property['ignore' ] == true ;
185
189
final includeFromJson = ! property.containsKey ('includeFromJson' ) ||
You can’t perform that action at this time.
0 commit comments