openxiangda-contracts 2.88.0 → 2.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2619,6 +2619,7 @@ function validateAnonymousPublicAccess(value, config, pointer) {
2619
2619
  'number.decimal',
2620
2620
  'date',
2621
2621
  'time',
2622
+ 'option.single',
2622
2623
  ].includes(declaredFields.get(field) || '')) {
2623
2624
  fail('NATIVE_PUBLIC_FILTER_FIELD_INVALID', `${filterPointer}/field`);
2624
2625
  }
@@ -2628,6 +2629,9 @@ function validateAnonymousPublicAccess(value, config, pointer) {
2628
2629
  typeof filter.value !== 'boolean') {
2629
2630
  fail('NATIVE_PUBLIC_FILTER_VALUE_INVALID', `${filterPointer}/value`);
2630
2631
  }
2632
+ if (['option.single'].includes(declaredFields.get(field) || '') && filter.value !== null && typeof filter.value !== 'string') {
2633
+ fail('NATIVE_PUBLIC_FILTER_VALUE_INVALID', `${filterPointer}/value`);
2634
+ }
2631
2635
  filterFields.add(field);
2632
2636
  });
2633
2637
  const publicSubtableFields = Object.prototype.hasOwnProperty.call(policy, 'publicSubtableFields')