pricing - schema validator does not accept null
MODIFY
test/api/BillingTest.ts
test/api/BillingTest.ts
@@ -656,6 +656,10 @@ class TestData {
dimensions
};
+ if (!tariff.restrictions) {
+ delete tariff.restrictions;
+ }
+
let response = await this.adminUserService.pricingApi.createPricingDefinition(tariff);
assert(response?.data?.status === 'Success', 'The operation should succeed');
assert(response?.data?.id, 'The ID should not be null');

pricing - schema validator does not accept null