diff --git a/lib/models/cardModel.js b/lib/models/cardModel.js index f89fb88b..e7c82eca 100644 --- a/lib/models/cardModel.js +++ b/lib/models/cardModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, // Fails if an extra param is added to the model + additionalProperties: true, // Fails if an extra param is added to the model properties: { id: { type: 'string' diff --git a/lib/models/cardTokenModel.js b/lib/models/cardTokenModel.js index ac1248a6..75b17996 100644 --- a/lib/models/cardTokenModel.js +++ b/lib/models/cardTokenModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, // Fails if an extra param is added to the model + additionalProperties: true, // Fails if an extra param is added to the model properties: { id: { type: 'string' diff --git a/lib/models/collectionsModel.js b/lib/models/collectionsModel.js index 4527aa2a..32a87ca7 100644 --- a/lib/models/collectionsModel.js +++ b/lib/models/collectionsModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, // Fails if an extra param is added to the model + additionalProperties: true, // Fails if an extra param is added to the model properties: { id: { type: 'integer' diff --git a/lib/models/customersModel.js b/lib/models/customersModel.js index b855d9b7..5cd0d21a 100644 --- a/lib/models/customersModel.js +++ b/lib/models/customersModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, + additionalProperties: true, properties: { email: { type: 'string', diff --git a/lib/models/discountCampaignModel.js b/lib/models/discountCampaignModel.js index cd7e2a90..8b07312d 100644 --- a/lib/models/discountCampaignModel.js +++ b/lib/models/discountCampaignModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, // Fails if an extra param is added to the model + additionalProperties: true, // Fails if an extra param is added to the model properties: { id: { type: 'string' diff --git a/lib/models/merchantOrdersModel.js b/lib/models/merchantOrdersModel.js index 05b24790..b96221e7 100644 --- a/lib/models/merchantOrdersModel.js +++ b/lib/models/merchantOrdersModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, + additionalProperties: true, properties: { preference_id: { type: 'string' diff --git a/lib/models/moneyRequestsModel.js b/lib/models/moneyRequestsModel.js index 9fca81ee..509b4d68 100644 --- a/lib/models/moneyRequestsModel.js +++ b/lib/models/moneyRequestsModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, + additionalProperties: true, properties: { concept_type: { enum: ['on_platform', 'off_platform'] diff --git a/lib/models/preapprovalModel.js b/lib/models/preapprovalModel.js index 8a699079..297f0aec 100644 --- a/lib/models/preapprovalModel.js +++ b/lib/models/preapprovalModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, + additionalProperties: true, properties: { payer_email: { type: 'string', diff --git a/lib/models/preferencesModel.js b/lib/models/preferencesModel.js index e152462d..d5838c40 100644 --- a/lib/models/preferencesModel.js +++ b/lib/models/preferencesModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, + additionalProperties: true, properties: { items: { type: 'array', diff --git a/lib/models/refundModel.js b/lib/models/refundModel.js index 7af9b54c..041695f3 100644 --- a/lib/models/refundModel.js +++ b/lib/models/refundModel.js @@ -1,6 +1,6 @@ /* istanbul ignore next */ module.exports = { - additionalProperties: false, // Fails if an extra param is added to the model + additionalProperties: true, // Fails if an extra param is added to the model properties: { id: { type: 'string' diff --git a/test/validation.js b/test/validation.js index 9f867339..d506c987 100644 --- a/test/validation.js +++ b/test/validation.js @@ -6,7 +6,7 @@ var validationModule = require('../lib/validation'); describe('Validation Module', function () { var testSchema = { - additionalProperties: false, + additionalProperties: true, properties: { first_name: { type: 'string'