@@ -42,6 +42,8 @@ namespace {{ spec.title | caseUcfirst }}
4242 Condition.LessThan => "lessThan",
4343 Condition.LessThanEqual => "lessThanEqual",
4444 Condition.Contains => "contains",
45+ Condition.IsNull => "isNull",
46+ Condition.IsNotNull => "isNotNull",
4547 _ => throw new ArgumentOutOfRangeException(nameof(condition), condition, null)
4648 };
4749 }
@@ -139,11 +141,19 @@ namespace {{ spec.title | caseUcfirst }}
139141
140142 public static string ArrayAppend(List<object > values)
141143 {
144+ if (values == null)
145+ {
146+ throw new ArgumentNullException(nameof(values));
147+ }
142148 return new Operator("arrayAppend", values).ToString();
143149 }
144150
145151 public static string ArrayPrepend(List<object > values)
146152 {
153+ if (values == null)
154+ {
155+ throw new ArgumentNullException(nameof(values));
156+ }
147157 return new Operator("arrayPrepend", values).ToString();
148158 }
149159
@@ -164,11 +174,19 @@ namespace {{ spec.title | caseUcfirst }}
164174
165175 public static string ArrayIntersect(List<object > values)
166176 {
177+ if (values == null)
178+ {
179+ throw new ArgumentNullException(nameof(values));
180+ }
167181 return new Operator("arrayIntersect", values).ToString();
168182 }
169183
170184 public static string ArrayDiff(List<object > values)
171185 {
186+ if (values == null)
187+ {
188+ throw new ArgumentNullException(nameof(values));
189+ }
172190 return new Operator("arrayDiff", values).ToString();
173191 }
174192
0 commit comments