Remove additional fields in storage validators
Updated sub-modules
MODIFY
src/assets/configs-aws
src/assets/configs-aws
-Subproject commit b662e76343cad53c417399bc0279bd76258c99b6
+Subproject commit df403d4b446d8ab020b686916dbad1716a7d0428

MODIFY
src/storage/mongodb/validator/AuthorizationValidatorStorage.ts
src/storage/mongodb/validator/AuthorizationValidatorStorage.ts
@@ -12,7 +12,7 @@ export default class AuthorizationValidatorStorage extends SchemaValidator {
super('AuthorizationValidatorStorage', {
strict: false, // When 'true', it fails with anyOf required fields: https://github.com/ajv-validator/ajv/issues/1571
allErrors: true,
- removeAdditional: false, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
+ removeAdditional: true, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
allowUnionTypes: true,
coerceTypes: true,
verbose: true,

MODIFY
src/storage/mongodb/validator/CarValidatorStorage.ts
src/storage/mongodb/validator/CarValidatorStorage.ts
@@ -12,7 +12,7 @@ export default class CarValidatorStorage extends SchemaValidator {
super('CarValidatorStorage', {
strict: false, // When 'true', it fails with anyOf required fields: https://github.com/ajv-validator/ajv/issues/1571
allErrors: true,
- removeAdditional: false, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
+ removeAdditional: true, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
allowUnionTypes: true,
coerceTypes: true,
verbose: true,

MODIFY
src/storage/mongodb/validator/ChargingStationValidatorStorage.ts
src/storage/mongodb/validator/ChargingStationValidatorStorage.ts
@@ -12,7 +12,7 @@ export default class ChargingStationValidatorStorage extends SchemaValidator {
super('ChargingStationValidatorStorage', {
strict: false, // When 'true', it fails with anyOf required fields: https://github.com/ajv-validator/ajv/issues/1571
allErrors: true,
- removeAdditional: false, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
+ removeAdditional: true, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
allowUnionTypes: true,
coerceTypes: true,
verbose: true,

MODIFY
src/storage/mongodb/validator/ConfigurationValidatorStorage.ts
src/storage/mongodb/validator/ConfigurationValidatorStorage.ts
@@ -12,7 +12,7 @@ export default class ConfigurationValidatorStorage extends SchemaValidator {
super('ConfigurationValidatorStorage', {
strict: false, // When 'true', it fails with anyOf required fields: https://github.com/ajv-validator/ajv/issues/1571
allErrors: true,
- removeAdditional: false, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
+ removeAdditional: true, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
allowUnionTypes: true,
coerceTypes: true,
verbose: true,

MODIFY
src/storage/mongodb/validator/PerformanceValidatorStorage.ts
src/storage/mongodb/validator/PerformanceValidatorStorage.ts
@@ -12,7 +12,7 @@ export default class PerformanceValidatorStorage extends SchemaValidator {
super('PerformanceValidatorStorage', {
strict: false, // When 'true', it fails with anyOf required fields: https://github.com/ajv-validator/ajv/issues/1571
allErrors: true,
- removeAdditional: false, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
+ removeAdditional: true, // 'all' fails with anyOf documents: Manually added 'additionalProperties: false' in schema due filtering of data in anyOf/oneOf/allOf array (it's standard): https://github.com/ajv-validator/ajv/issues/1784
allowUnionTypes: true,
coerceTypes: true,
verbose: true,

Remove additional fields in storage validators
Updated sub-modules