Validations history

Validation #425

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name"
  ],
  "title": "Park - ShortParc",
  "type": "object"
}

JSON instance

{
  "id": 46951577,
  "name": "ipsum"
}

Validation #424

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/' did not contain a required property of 'id' in schema efacdc7f-9c69-5d09-b8f2-1dd1b057abfc
  • The property '#/' did not contain a required property of 'name' in schema efacdc7f-9c69-5d09-b8f2-1dd1b057abfc

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name"
  ],
  "title": "Park - ShortParc",
  "type": "object"
}

JSON instance

{}

Validation #423

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultAssignee_808": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "assignee - DefaultAssignee",
      "type": "object"
    },
    "DefaultAvatarUrl_818": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {},
      "title": "avatarUrls - DefaultAvatarUrl",
      "type": "object"
    },
    "DefaultIssuetype_807": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "title": "issuetype - DefaultIssuetype",
      "type": "object"
    },
    "DefaultProjectCategory_819": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "self": {
          "type": "string"
        }
      },
      "required": [
        "description",
        "id",
        "name",
        "self"
      ],
      "title": "projectCategory - DefaultProjectCategory",
      "type": "object"
    },
    "IssuePUTbody_1247": {
      "additionalProperties": false,
      "properties": {
        "assignee": {
          "$ref": "#/definitions/DefaultAssignee_808",
          "description": "L’atelier à qui est destinée l’action suivante ",
          "type": "object"
        },
        "customfield_10301": {
          "description": "Date de disponibilité",
          "format": "date",
          "type": "string"
        },
        "customfield_10302": {
          "description": "Atelier + Nom de l’artisan (ce sont deux listes imbriquées dans le modèle JIRA)",
          "type": "object"
        },
        "customfield_10303": {
          "description": "Le modèle",
          "type": "object"
        },
        "customfield_10304": {
          "description": "Le modèle de remplacement",
          "type": "object"
        },
        "customfield_10305": {
          "description": "Quantité",
          "type": "object"
        },
        "customfield_10306": {
          "description": "Quantité de remplacement",
          "type": "object"
        },
        "customfield_10314": {
          "description": "Matière",
          "type": "object"
        },
        "customfield_10315": {
          "description": "Matière de remplacement",
          "type": "object"
        },
        "description": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "null"
            }
          ]
        },
        "issuetype": {
          "$ref": "#/definitions/DefaultIssuetype_807",
          "description": "Type de ticket (exemple: commande)",
          "type": "object"
        },
        "project": {
          "$ref": "#/definitions/ProjectIssueInformation_820",
          "description": "nom du projet auquel appartient le ticket",
          "type": "object"
        },
        "reporter": {
          "description": "nom de l'atelier table",
          "type": "object"
        },
        "summary": {
          "description": "Nom du modèle",
          "type": "string"
        }
      },
      "required": [
        "assignee",
        "customfield_10301",
        "customfield_10302",
        "customfield_10303",
        "customfield_10304",
        "customfield_10305",
        "customfield_10306",
        "customfield_10314",
        "customfield_10315",
        "description",
        "issuetype",
        "project",
        "reporter",
        "summary"
      ],
      "title": "FieldsBis - IssuePUTbody",
      "type": "object"
    },
    "ProjectIssueInformation_820": {
      "additionalProperties": false,
      "properties": {
        "avatarUrls": {
          "$ref": "#/definitions/DefaultAvatarUrl_818",
          "type": "object"
        },
        "id": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "projectCategory": {
          "$ref": "#/definitions/DefaultProjectCategory_819",
          "type": "object"
        },
        "self": {
          "type": "string"
        }
      },
      "required": [
        "avatarUrls",
        "id",
        "key",
        "name",
        "projectCategory",
        "self"
      ],
      "title": "project - ProjectIssueInformation",
      "type": "object"
    }
  },
  "properties": {
    "fields": {
      "$ref": "#/definitions/IssuePUTbody_1247",
      "type": "object"
    }
  },
  "title": "IssueBis - IssuePOSTbody",
  "type": "object"
}

JSON instance

{}

Validation #422

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultAssignee_808": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "assignee - DefaultAssignee",
      "type": "object"
    },
    "DefaultAvatarUrl_818": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {},
      "title": "avatarUrls - DefaultAvatarUrl",
      "type": "object"
    },
    "DefaultIssuetype_807": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "title": "issuetype - DefaultIssuetype",
      "type": "object"
    },
    "DefaultProjectCategory_819": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "self": {
          "type": "string"
        }
      },
      "required": [
        "description",
        "id",
        "name",
        "self"
      ],
      "title": "projectCategory - DefaultProjectCategory",
      "type": "object"
    },
    "IssuePUTbody_1247": {
      "additionalProperties": false,
      "properties": {
        "assignee": {
          "$ref": "#/definitions/DefaultAssignee_808",
          "description": "L’atelier à qui est destinée l’action suivante ",
          "type": "object"
        },
        "customfield_10301": {
          "description": "Date de disponibilité",
          "format": "date",
          "type": "string"
        },
        "customfield_10302": {
          "description": "Atelier + Nom de l’artisan (ce sont deux listes imbriquées dans le modèle JIRA)",
          "type": "object"
        },
        "customfield_10303": {
          "description": "Le modèle",
          "type": "object"
        },
        "customfield_10304": {
          "description": "Le modèle de remplacement",
          "type": "object"
        },
        "customfield_10305": {
          "description": "Quantité",
          "type": "object"
        },
        "customfield_10306": {
          "description": "Quantité de remplacement",
          "type": "object"
        },
        "customfield_10314": {
          "description": "Matière",
          "type": "object"
        },
        "customfield_10315": {
          "description": "Matière de remplacement",
          "type": "object"
        },
        "description": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "null"
            }
          ]
        },
        "issuetype": {
          "$ref": "#/definitions/DefaultIssuetype_807",
          "description": "Type de ticket (exemple: commande)",
          "type": "object"
        },
        "project": {
          "$ref": "#/definitions/ProjectIssueInformation_820",
          "description": "nom du projet auquel appartient le ticket",
          "type": "object"
        },
        "reporter": {
          "description": "nom de l'atelier table",
          "type": "object"
        },
        "summary": {
          "description": "Nom du modèle",
          "type": "string"
        }
      },
      "required": [
        "assignee",
        "customfield_10301",
        "customfield_10302",
        "customfield_10303",
        "customfield_10304",
        "customfield_10305",
        "customfield_10306",
        "customfield_10314",
        "customfield_10315",
        "description",
        "issuetype",
        "project",
        "reporter",
        "summary"
      ],
      "title": "FieldsBis - IssuePUTbody",
      "type": "object"
    },
    "ProjectIssueInformation_820": {
      "additionalProperties": false,
      "properties": {
        "avatarUrls": {
          "$ref": "#/definitions/DefaultAvatarUrl_818",
          "type": "object"
        },
        "id": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "projectCategory": {
          "$ref": "#/definitions/DefaultProjectCategory_819",
          "type": "object"
        },
        "self": {
          "type": "string"
        }
      },
      "required": [
        "avatarUrls",
        "id",
        "key",
        "name",
        "projectCategory",
        "self"
      ],
      "title": "project - ProjectIssueInformation",
      "type": "object"
    }
  },
  "properties": {
    "fields": {
      "$ref": "#/definitions/IssuePUTbody_1247",
      "type": "object"
    }
  },
  "required": [
    "fields"
  ],
  "title": "IssueBis - IssuePUTbody",
  "type": "object"
}

JSON instance

{
  "fields": {
    "assignee": {
      "name": "nisi officia consectetur sed"
    },
    "customfield_10301": "2005-11-17",
    "customfield_10302": {},
    "customfield_10303": {},
    "customfield_10304": {},
    "customfield_10305": {},
    "customfield_10306": {},
    "customfield_10314": {},
    "customfield_10315": {},
    "description": null,
    "issuetype": {
      "id": "Lorem in m"
    },
    "project": {
      "avatarUrls": {},
      "id": "cillum",
      "key": "exercitation fu",
      "name": "incididunt Ut ea dolore in",
      "projectCategory": {
        "description": "sit",
        "id": "Excepteur",
        "name": "in do voluptate non",
        "self": "labore elit"
      },
      "self": "ex tempor"
    },
    "reporter": {},
    "summary": "cupidatat eiusmod ut"
  }
}

Validation #421

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "properties": {},
  "title": "IssueBis - IssueGETresponse",
  "type": "object"
}

JSON instance

{}

Validation #388

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/' contains additional properties ["idUserSfl", "mobilePhone", "otpCode", "status", "codeRetry", "codeRenewCount", "confirmationCodeDate", "sendingCodeDate", "culture", "offersMaturityId", "offersDeliveryPeriodId", "offersDeliveryModedId", "commodityCode", "hashIdFarm", "customerEmail", "contactEmail", "submitDate", "periodMaturityId", "firstCheckProcess", "contractProcess", "errorMessage", "secondCheckProcess"] outside of the schema when none are allowed in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/comment' of type null did not match the following type: string in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/deliveryPlace' of type null did not match the following type: string in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/harvest' of type integer did not match the following type: string in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/maturity' of type null did not match the following type: string in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/minCropPrice' of type null did not match the following type: number in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/strikePrice' of type null did not match the following type: number in schema bd5ed5af-d528-54fd-b34f-84c52645a585
  • The property '#/warrantyCost' of type null did not match the following type: number in schema bd5ed5af-d528-54fd-b34f-84c52645a585

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "baseLabel": {
      "type": "string"
    },
    "basePrice": {
      "type": "number"
    },
    "comment": {
      "type": "string"
    },
    "commodityLabel": {
      "type": "string"
    },
    "cropCode": {
      "type": "string"
    },
    "cropLabel": {
      "type": "string"
    },
    "customerNumber": {
      "type": "string"
    },
    "deliveryMode": {
      "type": "string"
    },
    "deliveryPlace": {
      "type": "string"
    },
    "harvest": {
      "type": "string"
    },
    "harvestType": {
      "type": "string"
    },
    "lastPriceUpdate": {
      "format": "datetime",
      "type": "string"
    },
    "maturity": {
      "type": "string"
    },
    "minCropPrice": {
      "type": "number"
    },
    "offerId": {
      "type": "integer"
    },
    "offerQualityType": {
      "type": "string"
    },
    "offerType": {
      "type": "string"
    },
    "offerTypeLabel": {
      "type": "string"
    },
    "periodCode": {
      "type": "string"
    },
    "periodName": {
      "type": "string"
    },
    "price": {
      "type": "number"
    },
    "priceDiff": {
      "type": "number"
    },
    "product": {
      "type": "string"
    },
    "productLabel": {
      "type": "string"
    },
    "quantity": {
      "type": "number"
    },
    "strikePrice": {
      "type": "number"
    },
    "transactionDate": {
      "format": "datetime",
      "type": "string"
    },
    "transactionId": {
      "type": "string"
    },
    "transactionRef": {
      "type": "integer"
    },
    "warrantyCost": {
      "type": "number"
    }
  },
  "required": [
    "baseLabel",
    "basePrice",
    "comment",
    "commodityLabel",
    "cropCode",
    "cropLabel",
    "customerNumber",
    "deliveryMode",
    "deliveryPlace",
    "harvest",
    "harvestType",
    "lastPriceUpdate",
    "maturity",
    "minCropPrice",
    "offerId",
    "offerQualityType",
    "offerType",
    "offerTypeLabel",
    "periodCode",
    "periodName",
    "price",
    "priceDiff",
    "product",
    "productLabel",
    "quantity",
    "strikePrice",
    "transactionDate",
    "transactionId",
    "transactionRef",
    "warrantyCost"
  ],
  "title": "Transaction - ExtendedTransaction",
  "type": "object"
}

JSON instance

{
  "baseLabel": "Base Juillet",
  "basePrice": 205.8,
  "codeRenewCount": 1,
  "codeRetry": 0,
  "comment": null,
  "commodityCode": "BL2",
  "commodityLabel": "Blé Euronext",
  "confirmationCodeDate": null,
  "contactEmail": "julien.lourdens+2211@applidium.com",
  "contractProcess": 0,
  "cropCode": "BT",
  "cropLabel": "Blé tendre",
  "culture": "fr",
  "customerEmail": "julien.lourdens+2211@applidium.com",
  "customerNumber": "98066500",
  "deliveryMode": "DEP1",
  "deliveryPlace": null,
  "errorMessage": null,
  "firstCheckProcess": 773309,
  "harvest": 2018,
  "harvestType": "1",
  "hashIdFarm": "086f2fad478ad6fe44f1b5fe92c093b6d5305aadbea1abee21fc2075b66536d2",
  "idUserSfl": "DFEA2362-5613-4C24-A78E-32110107B2CF",
  "lastPriceUpdate": "2018-09-20T15:17:50",
  "maturity": null,
  "minCropPrice": null,
  "mobilePhone": "0033625540120",
  "offerId": 3,
  "offerQualityType": "STD",
  "offerType": "APF",
  "offerTypeLabel": "Offre prix ferme",
  "offersDeliveryModedId": 30,
  "offersDeliveryPeriodId": 1,
  "offersMaturityId": 0,
  "otpCode": "9936",
  "periodCode": "OCT - DEC",
  "periodMaturityId": 0,
  "periodName": "Oct - Déc",
  "price": 201.15,
  "priceDiff": 3,
  "product": "000005",
  "productLabel": "Ble 1",
  "quantity": 10,
  "secondCheckProcess": 0,
  "sendingCodeDate": "2018-10-08T06:50:10.493",
  "status": 0,
  "strikePrice": null,
  "submitDate": "2018-10-08T06:50:09.517",
  "transactionDate": "2018-10-08T06:50:09.647",
  "transactionId": "1aa08280-5d7b-4964-9c00-dd84474a37f3",
  "transactionRef": 100079,
  "warrantyCost": null
}

Validation #387

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultCollectDeliveryModes_879": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "code": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "type",
        "value"
      ],
      "title": "CollectDeliveryModes - DefaultCollectDeliveryModes",
      "type": "object"
    },
    "DefaultCollectDeliveryPeriods_880": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "central_place_price": {
          "type": "number"
        },
        "code": {
          "type": "string"
        },
        "direct_farm_price": {
          "type": "number"
        },
        "harvest_type": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "increase": {
          "type": "number"
        },
        "last_price_update": {
          "format": "datetime",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "roll_on_price": {
          "type": "number"
        },
        "satellite_place_price": {
          "type": "number"
        }
      },
      "required": [
        "central_place_price",
        "code",
        "direct_farm_price",
        "harvest_type",
        "id",
        "increase",
        "last_price_update",
        "name",
        "roll_on_price",
        "satellite_place_price"
      ],
      "title": "CollectDeliveryPeriods - DefaultCollectDeliveryPeriods",
      "type": "object"
    },
    "DefaultCollectDeliveryTypes_878": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "delivery_modes": {
          "items": {
            "$ref": "#/definitions/DefaultCollectDeliveryModes_879",
            "type": "object"
          },
          "type": "array"
        },
        "delivery_periods": {
          "items": {
            "$ref": "#/definitions/DefaultCollectDeliveryPeriods_880",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "type": "integer"
        },
        "main_type": {
          "type": "string"
        },
        "order": {
          "type": "integer"
        }
      },
      "required": [
        "delivery_modes",
        "delivery_periods",
        "id",
        "main_type",
        "order"
      ],
      "title": "CollectDeliveryTypes - DefaultCollectDeliveryTypes",
      "type": "object"
    },
    "DefaultCollectMaturity_877": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "commodity_label": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "maturity": {
          "type": "string"
        },
        "strike_price": {
          "type": "number"
        },
        "warranty_cost": {
          "type": "number"
        }
      },
      "required": [
        "commodity_label",
        "id",
        "maturity",
        "strike_price",
        "warranty_cost"
      ],
      "title": "CollectMaturity - DefaultCollectMaturity",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "collection_offers": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "base_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery_types": {
            "items": {
              "$ref": "#/definitions/DefaultCollectDeliveryTypes_878",
              "type": "object"
            },
            "type": "array"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "harvest": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "market_label": {
            "type": "string"
          },
          "market_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketing_tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturities": {
            "items": {
              "$ref": "#/definitions/DefaultCollectMaturity_877",
              "type": "object"
            },
            "type": "array"
          },
          "picture_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "integer"
          },
          "product_label": {
            "type": "string"
          },
          "quality_label": {
            "type": "string"
          },
          "quantity_max_per_customer": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "remaining_quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "short_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "type_label": {
            "type": "string"
          }
        },
        "required": [
          "base_label",
          "delivery_types",
          "description",
          "harvest",
          "id",
          "market_label",
          "market_reference",
          "picture_url",
          "priority",
          "product_label",
          "quality_label",
          "quantity_max_per_customer",
          "remaining_quantity",
          "short_description",
          "title",
          "type",
          "type_label"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "collection_offers"
  ],
  "title": "CollectionOffer - DefaultCollectOffer",
  "type": "object"
}

JSON instance

{
  "collection_offers": []
}

Validation #386

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultUserUpdateAvatarData_968": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "file_data": {
          "description": "Base64 file representation",
          "type": "string"
        }
      },
      "required": [
        "file_data"
      ],
      "title": "UserUpdateAvatarData - DefaultUserUpdateAvatarData",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "avatar": {
      "$ref": "#/definitions/DefaultUserUpdateAvatarData_968",
      "type": "object"
    },
    "field_user_email_hebdo": {
      "description": "\"0\"/\"1\"",
      "type": "string"
    },
    "field_user_notification_tag": {
      "description": "\"0\"/\"1\"",
      "type": "string"
    },
    "firstname": {
      "type": "string"
    },
    "job": {
      "type": "string"
    },
    "lastname": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "society": {
      "type": "string"
    }
  },
  "required": [
    "job"
  ],
  "title": "UserUpdateRequest - DefaultUserUpdateRequest",
  "type": "object"
}

JSON instance

{
  "job": "ullamco ut"
}

Validation #385

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/subscription/resume_coupon' of type object did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/subscription/resume_coupon/offer' did not contain a required property of 'multiplier_for_durations' - anyOf #1: - The property '#/subscription/resume_coupon' of type object did not match the following type: null

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CompanyCoupon_1030": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "available": {
          "description": "\tCoupon availability (i.e. coupon not already used by a subscription)",
          "type": "boolean"
        },
        "company": {
          "description": "CompanyCoupon company",
          "type": "object"
        },
        "id": {
          "type": "integer"
        },
        "offer": {
          "$ref": "#/definitions/DefaultOffer_1025",
          "description": "CompanyCoupon offer",
          "type": "object"
        },
        "type": {
          "description": "Coupon code",
          "type": "string"
        }
      },
      "required": [
        "available",
        "company",
        "id",
        "offer",
        "type"
      ],
      "title": "Coupon - CompanyCoupon",
      "type": "object"
    },
    "DefaultCoworkerCoupon_1031": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "code": {
          "type": "string"
        },
        "custom_proposition_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "integer"
        },
        "proposed_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "available",
        "code",
        "custom_proposition_text",
        "id",
        "proposed_to"
      ],
      "title": "CoworkerCoupon - DefaultCoworkerCoupon",
      "type": "object"
    },
    "DefaultOffer_1025": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "has_access_to_private_offices": {
          "description": "Offer gives acces to private office?",
          "type": "boolean"
        },
        "hidden": {
          "description": "Offer not directly subscribable by user",
          "type": "boolean"
        },
        "highlighted": {
          "description": "Offer highlighted (only one per kind)",
          "type": "boolean"
        },
        "ht_price": {
          "description": "Offer price without VAT",
          "type": "string"
        },
        "ht_price_per_day": {
          "description": "Offer price per day without VAT",
          "type": "string"
        },
        "id": {
          "description": "Offer id",
          "type": "integer"
        },
        "kind": {
          "description": "Offer kind (0: free, 1: open, 2: office)",
          "type": "integer"
        },
        "marketing_name": {
          "description": "Offer’s marketing name (optional)",
          "type": "string"
        },
        "multiplier_for_durations": {
          "description": "\tList of offer’s possible durations localized string along with the corresponding multiplier",
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "name": {
          "description": "Offer name",
          "type": "string"
        },
        "number_of_bookings_per_month": {
          "description": "Offer number of meeting room booking credits per month",
          "type": "integer"
        },
        "one_time": {
          "description": "Offer subscribable only once per user",
          "type": "boolean"
        },
        "period": {
          "description": "Offer period (0: day, 1: week, 2: month)",
          "type": "integer"
        },
        "price": {
          "description": "Offer price with VAT",
          "type": "string"
        },
        "space_id": {
          "anyOf": [
            {
              "description": "Offer’s space id",
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "has_access_to_private_offices",
        "hidden",
        "highlighted",
        "ht_price",
        "ht_price_per_day",
        "id",
        "kind",
        "marketing_name",
        "multiplier_for_durations",
        "name",
        "number_of_bookings_per_month",
        "one_time",
        "period",
        "price",
        "space_id"
      ],
      "title": "Offer - DefaultOffer",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "subscription": {
      "additionalProperties": false,
      "properties": {
        "coworker_coupons": {
          "description": "Subscription coworker coupons in case offer includes a private office",
          "items": {
            "$ref": "#/definitions/DefaultCoworkerCoupon_1031",
            "type": "object"
          },
          "type": "array"
        },
        "from": {
          "description": "Subscription start date",
          "format": "date",
          "type": "string"
        },
        "ht_price": {
          "type": "number"
        },
        "id": {
          "description": "Subscription id",
          "type": "integer"
        },
        "multiplier": {
          "description": "\tSubscription multiplier of the offer’s price, duration and number_of_bookings_per_month",
          "type": "integer"
        },
        "number_of_bookings_left": {
          "description": "Subscription number of bookings left",
          "type": "integer"
        },
        "offer_id": {
          "description": "Subscription offer",
          "type": "integer"
        },
        "price": {
          "description": "Subscription price",
          "type": "number"
        },
        "private_office_id": {
          "anyOf": [
            {
              "description": "Subscription private office id, if offer has access to private offices",
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "taxes": {
          "type": "number"
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "ht_price",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "taxes",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "coworker_coupons": [
      {
        "available": false,
        "code": "adipisicing irure labore ullamco d",
        "custom_proposition_text": null,
        "id": -48618311,
        "proposed_to": "velit ea ut elit nisi"
      },
      {
        "available": true,
        "code": "magna laboris",
        "custom_proposition_text": null,
        "id": 71610310,
        "proposed_to": "ad Ut mollit veniam"
      },
      {
        "available": true,
        "code": "incididunt eiusmod no",
        "custom_proposition_text": "deserunt consequat aute non commodo",
        "id": 46261325,
        "proposed_to": null
      }
    ],
    "from": "2014-05-29",
    "ht_price": -36204220.2116422,
    "id": -91607730,
    "multiplier": 82179496,
    "number_of_bookings_left": -56317876,
    "offer_id": 54559535,
    "price": -89082593.95991825,
    "private_office_id": null,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": 35775147,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": true,
        "ht_price": "laboris deserunt",
        "ht_price_per_day": "nisi commodo",
        "id": -38587804,
        "kind": -922380,
        "marketing_name": "sunt ea enim in",
        "name": "ea in magna",
        "number_of_bookings_per_month": -99843622,
        "one_time": false,
        "period": 46776161,
        "price": "qui consequat",
        "space_id": null
      },
      "type": "elit id quis incididunt"
    },
    "taxes": -86755438.1632881,
    "to": "1999-09-30"
  }
}

Validation #384

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/subscription/resume_coupon' of type object did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/subscription/resume_coupon/offer' did not contain a required property of 'multiplier_for_durations' - anyOf #1: - The property '#/subscription/resume_coupon' of type object did not match the following type: null

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CompanyCoupon_1030": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "available": {
          "description": "\tCoupon availability (i.e. coupon not already used by a subscription)",
          "type": "boolean"
        },
        "company": {
          "description": "CompanyCoupon company",
          "type": "object"
        },
        "id": {
          "type": "integer"
        },
        "offer": {
          "$ref": "#/definitions/DefaultOffer_1025",
          "description": "CompanyCoupon offer",
          "type": "object"
        },
        "type": {
          "description": "Coupon code",
          "type": "string"
        }
      },
      "required": [
        "available",
        "company",
        "id",
        "offer",
        "type"
      ],
      "title": "Coupon - CompanyCoupon",
      "type": "object"
    },
    "DefaultCoworkerCoupon_1031": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "code": {
          "type": "string"
        },
        "custom_proposition_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "integer"
        },
        "proposed_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "available",
        "code",
        "custom_proposition_text",
        "id",
        "proposed_to"
      ],
      "title": "CoworkerCoupon - DefaultCoworkerCoupon",
      "type": "object"
    },
    "DefaultOffer_1025": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "has_access_to_private_offices": {
          "description": "Offer gives acces to private office?",
          "type": "boolean"
        },
        "hidden": {
          "description": "Offer not directly subscribable by user",
          "type": "boolean"
        },
        "highlighted": {
          "description": "Offer highlighted (only one per kind)",
          "type": "boolean"
        },
        "ht_price": {
          "description": "Offer price without VAT",
          "type": "string"
        },
        "ht_price_per_day": {
          "description": "Offer price per day without VAT",
          "type": "string"
        },
        "id": {
          "description": "Offer id",
          "type": "integer"
        },
        "kind": {
          "description": "Offer kind (0: free, 1: open, 2: office)",
          "type": "integer"
        },
        "marketing_name": {
          "description": "Offer’s marketing name (optional)",
          "type": "string"
        },
        "multiplier_for_durations": {
          "description": "\tList of offer’s possible durations localized string along with the corresponding multiplier",
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "name": {
          "description": "Offer name",
          "type": "string"
        },
        "number_of_bookings_per_month": {
          "description": "Offer number of meeting room booking credits per month",
          "type": "integer"
        },
        "one_time": {
          "description": "Offer subscribable only once per user",
          "type": "boolean"
        },
        "period": {
          "description": "Offer period (0: day, 1: week, 2: month)",
          "type": "integer"
        },
        "price": {
          "description": "Offer price with VAT",
          "type": "string"
        },
        "space_id": {
          "anyOf": [
            {
              "description": "Offer’s space id",
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "has_access_to_private_offices",
        "hidden",
        "highlighted",
        "ht_price",
        "ht_price_per_day",
        "id",
        "kind",
        "marketing_name",
        "multiplier_for_durations",
        "name",
        "number_of_bookings_per_month",
        "one_time",
        "period",
        "price",
        "space_id"
      ],
      "title": "Offer - DefaultOffer",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "subscription": {
      "additionalProperties": false,
      "properties": {
        "coworker_coupons": {
          "description": "Subscription coworker coupons in case offer includes a private office",
          "items": {
            "$ref": "#/definitions/DefaultCoworkerCoupon_1031",
            "type": "object"
          },
          "type": "array"
        },
        "from": {
          "description": "Subscription start date",
          "format": "date",
          "type": "string"
        },
        "ht_price": {
          "type": "number"
        },
        "id": {
          "description": "Subscription id",
          "type": "integer"
        },
        "multiplier": {
          "description": "\tSubscription multiplier of the offer’s price, duration and number_of_bookings_per_month",
          "type": "integer"
        },
        "number_of_bookings_left": {
          "description": "Subscription number of bookings left",
          "type": "integer"
        },
        "offer_id": {
          "description": "Subscription offer",
          "type": "integer"
        },
        "price": {
          "description": "Subscription price",
          "type": "number"
        },
        "private_office_id": {
          "anyOf": [
            {
              "description": "Subscription private office id, if offer has access to private offices",
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "taxes": {
          "type": "number"
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "ht_price",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "taxes",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "coworker_coupons": [
      {
        "available": true,
        "code": "laborum",
        "custom_proposition_text": null,
        "id": 94832462,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "occaecat ex sunt magna",
        "custom_proposition_text": "fugiat nulla reprehenderit labore",
        "id": 70269272,
        "proposed_to": "velit "
      },
      {
        "available": false,
        "code": "deserunt cupidatat",
        "custom_proposition_text": "labore elit ipsum",
        "id": -32586577,
        "proposed_to": null
      },
      {
        "available": true,
        "code": "Lorem",
        "custom_proposition_text": null,
        "id": -57789870,
        "proposed_to": null
      }
    ],
    "from": "1968-09-18",
    "ht_price": 74469154.66371903,
    "id": 33755010,
    "multiplier": -89155006,
    "number_of_bookings_left": 66357753,
    "offer_id": 24625645,
    "price": -94035778.07774214,
    "private_office_id": 28860533,
    "resume_coupon": {
      "available": true,
      "company": {},
      "id": -25004842,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": true,
        "highlighted": false,
        "ht_price": "consequat sint esse",
        "ht_price_per_day": "nulla aute",
        "id": -54171371,
        "kind": 4033515,
        "marketing_name": "Excepteur",
        "name": "Lorem proident",
        "number_of_bookings_per_month": -21778858,
        "one_time": true,
        "period": -32948094,
        "price": "Excepteur nostrud",
        "space_id": null
      },
      "type": "ut aliqua cupidatat officia Lorem"
    },
    "taxes": -52480712.39253367,
    "to": "1976-12-02"
  }
}