@beseif-solutions/prow-core 0.2.0 → 0.2.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.
@@ -241,7 +241,7 @@ const getSimpleFieldSchema = (field) => {
241
241
  case `any`:
242
242
  typeSchema = anySchema();
243
243
  if (field.allow_nullish) {
244
- typeSchema = typeSchema.allow(null, ``, 0, undefined);
244
+ typeSchema = typeSchema.allow(null, ``, 0);
245
245
  }
246
246
  break;
247
247
  case `boolean`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -462,7 +462,7 @@ const getSimpleFieldSchema = (field: Field) => {
462
462
  case `any`:
463
463
  typeSchema = anySchema();
464
464
  // allow null values for any type
465
- if (field.allow_nullish) { typeSchema = typeSchema.allow(null, ``, 0, undefined); }
465
+ if (field.allow_nullish) { typeSchema = typeSchema.allow(null, ``, 0); }
466
466
  break;
467
467
  case `boolean`:
468
468
  typeSchema = Joi.bool();