Skip to content

Commit 3af4db7

Browse files
committed
docs: fix description of _empty filter fields
Lists can never be null in cruddl. It also does not make sense to treat null as non-empty, and it was not the case.
1 parent 40ae3ff commit 3af4db7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/schema-generation/filter-input-types/filter-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export class EmptyListFilterField implements FilterField {
247247

248248
constructor(public readonly field: Field) {
249249
this.name = this.field.name + '_empty';
250-
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list or null (false).`;
250+
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list (false).`;
251251
}
252252

253253
getFilterNode(sourceNode: QueryNode, filterValue: AnyValue): QueryNode {

src/schema-generation/flex-search-filter-input-types/filter-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class FlexSearchEmptyListFilterField implements FlexSearchFilterField {
319319

320320
constructor(public readonly field: Field) {
321321
this.name = this.field.name + '_empty';
322-
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list or null (false).`;
322+
this.description = `Checks if \`${this.field.name}\` is an empty list (true) or a non-empty list (false).`;
323323
}
324324

325325
getFilterNode(

0 commit comments

Comments
 (0)