@kokimoki/kit 1.6.2 → 1.6.3

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.
@@ -160,6 +160,11 @@ function kokimokiKitPlugin(config) {
160
160
  }));
161
161
  delete ctx.jsonSchema.anyOf;
162
162
  }
163
+ // Remove fields that have a default from the required list
164
+ if (ctx.jsonSchema.properties && ctx.jsonSchema.required) {
165
+ const properties = ctx.jsonSchema.properties;
166
+ ctx.jsonSchema.required = ctx.jsonSchema.required.filter((field) => !("default" in properties[field]));
167
+ }
163
168
  },
164
169
  });
165
170
  await promises_1.default.writeFile(".kokimoki/schema.json", JSON.stringify(jsonSchema, null, 2));
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const KOKIMOKI_KIT_VERSION = "1.6.2";
1
+ export declare const KOKIMOKI_KIT_VERSION = "1.6.3";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KOKIMOKI_KIT_VERSION = void 0;
4
- exports.KOKIMOKI_KIT_VERSION = "1.6.2";
4
+ exports.KOKIMOKI_KIT_VERSION = "1.6.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/kit",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",