Skip to content

Commit

Permalink
Enable users to send custom properties to all models
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Pedroso committed Mar 17, 2021
1 parent 41c0a3b commit ae50605
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/models/cardModel.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/models/cardTokenModel.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/models/collectionsModel.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/models/customersModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore next */
module.exports = {
additionalProperties: false,
additionalProperties: true,
properties: {
email: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion lib/models/discountCampaignModel.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/models/merchantOrdersModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore next */
module.exports = {
additionalProperties: false,
additionalProperties: true,
properties: {
preference_id: {
type: 'string'
Expand Down
2 changes: 1 addition & 1 deletion lib/models/moneyRequestsModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore next */
module.exports = {
additionalProperties: false,
additionalProperties: true,
properties: {
concept_type: {
enum: ['on_platform', 'off_platform']
Expand Down
2 changes: 1 addition & 1 deletion lib/models/preapprovalModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore next */
module.exports = {
additionalProperties: false,
additionalProperties: true,
properties: {
payer_email: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion lib/models/preferencesModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore next */
module.exports = {
additionalProperties: false,
additionalProperties: true,
properties: {
items: {
type: 'array',
Expand Down
2 changes: 1 addition & 1 deletion lib/models/refundModel.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion test/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var validationModule = require('../lib/validation');

describe('Validation Module', function () {
var testSchema = {
additionalProperties: false,
additionalProperties: true,
properties: {
first_name: {
type: 'string'
Expand Down

0 comments on commit ae50605

Please sign in to comment.