@takeshape/schema 10.50.6 → 10.52.0

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.
package/dist/validate.js CHANGED
@@ -971,7 +971,7 @@ function ensureValidLatestSchemaSyntax(obj) {
971
971
  function createRoleInputValidator() {
972
972
  const validator = (0, _jsonSchema.createAjv)({
973
973
  useDefaults: true,
974
- removeAdditional: 'all'
974
+ removeAdditional: true
975
975
  });
976
976
  const {
977
977
  RoleInput,
@@ -1002,7 +1002,8 @@ function validateRoleInput(maybeRoleInput) {
1002
1002
  */
1003
1003
  function createRoleImportValidator() {
1004
1004
  const validator = (0, _jsonSchema.createAjv)({
1005
- useDefaults: true
1005
+ useDefaults: true,
1006
+ removeAdditional: true
1006
1007
  });
1007
1008
  const {
1008
1009
  RoleImport,
package/es/validate.js CHANGED
@@ -956,7 +956,7 @@ export function ensureValidLatestSchemaSyntax(obj) {
956
956
  function createRoleInputValidator() {
957
957
  const validator = createAjv({
958
958
  useDefaults: true,
959
- removeAdditional: 'all'
959
+ removeAdditional: true
960
960
  });
961
961
  const {
962
962
  RoleInput,
@@ -987,7 +987,8 @@ export function validateRoleInput(maybeRoleInput) {
987
987
  */
988
988
  function createRoleImportValidator() {
989
989
  const validator = createAjv({
990
- useDefaults: true
990
+ useDefaults: true,
991
+ removeAdditional: true
991
992
  });
992
993
  const {
993
994
  RoleImport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "10.50.6",
3
+ "version": "10.52.0",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "p-reduce": "^2.1.0",
29
29
  "semver": "^7.3.2",
30
30
  "tiny-invariant": "^1.2.0",
31
- "@takeshape/errors": "10.50.6",
32
- "@takeshape/json-schema": "10.50.6",
33
- "@takeshape/util": "10.50.6"
31
+ "@takeshape/json-schema": "10.52.0",
32
+ "@takeshape/errors": "10.52.0",
33
+ "@takeshape/util": "10.52.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -46,7 +46,7 @@
46
46
  "meow": "^9.0.0",
47
47
  "p-map": "^5.0.0",
48
48
  "shortid": "^2.2.15",
49
- "@takeshape/infra": "10.50.6"
49
+ "@takeshape/infra": "10.52.0"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18"