Skip to content

Commit

Permalink
fix: explicitely make the other properties from other format not requ…
Browse files Browse the repository at this point in the history
…ired
  • Loading branch information
filipgutica committed Dec 19, 2024
1 parent fea0ea1 commit fdd82d9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ const filtersFn = <T extends readonly string[]>(filterableDimensions: T) => ({
'type',
'values',
],
not: {
required: ['field', 'operator', 'value'],
},
additionalProperties: false,
},
{
Expand Down Expand Up @@ -376,6 +379,9 @@ const filtersFn = <T extends readonly string[]>(filterableDimensions: T) => ({
'field',
'operator',
],
not: {
required: ['dimension', 'type', 'values'],
},
additionalProperties: false,
},
],
Expand Down

0 comments on commit fdd82d9

Please sign in to comment.