Validations history

Validation #383

Success

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

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": "tempor",
        "custom_proposition_text": null,
        "id": -95568187,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "fugiat",
        "custom_proposition_text": "ipsum ea quis",
        "id": 64686244,
        "proposed_to": null
      }
    ],
    "from": "2011-02-24",
    "ht_price": 80066968.30596226,
    "id": 41805096,
    "multiplier": -66995417,
    "number_of_bookings_left": 25952492,
    "offer_id": -82095538,
    "price": -86728281.62475312,
    "private_office_id": -65017170,
    "resume_coupon": null,
    "taxes": -53071975.1029554,
    "to": "1952-08-12"
  }
}

Validation #382

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": "exercitation in",
        "custom_proposition_text": null,
        "id": 91205070,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "nulla",
        "custom_proposition_text": null,
        "id": -53256572,
        "proposed_to": "elit irure non incididunt nostrud"
      },
      {
        "available": false,
        "code": "velit consectetur reprehenderit incididunt aliquip",
        "custom_proposition_text": null,
        "id": -96623840,
        "proposed_to": null
      }
    ],
    "from": "2016-10-27",
    "ht_price": 11522967.6180951,
    "id": -50657009,
    "multiplier": -10543522,
    "number_of_bookings_left": 38131212,
    "offer_id": -41135612,
    "price": 54106420.710318655,
    "private_office_id": -73671630,
    "resume_coupon": {
      "available": true,
      "company": {},
      "id": -57639364,
      "offer": {
        "has_access_to_private_offices": false,
        "hidden": false,
        "highlighted": false,
        "ht_price": "elit pariatur ut ad",
        "ht_price_per_day": "officia id consectetur occaecat qui",
        "id": -32926909,
        "kind": 50546598,
        "marketing_name": "cupidatat culpa dolor officia ex",
        "name": "in",
        "number_of_bookings_per_month": -68072157,
        "one_time": false,
        "period": -45955886,
        "price": "commodo et",
        "space_id": 44105604
      },
      "type": ""
    },
    "taxes": 6098963.894499436,
    "to": "1978-09-18"
  }
}

Validation #381

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": "exercitation aliqua",
        "custom_proposition_text": "dolore e",
        "id": 2632744,
        "proposed_to": "commodo do consectetur incididunt magna"
      },
      {
        "available": false,
        "code": "cillum deserunt consequat consectetur irure",
        "custom_proposition_text": "officia m",
        "id": 82307287,
        "proposed_to": "et deserunt"
      },
      {
        "available": true,
        "code": "id in nisi",
        "custom_proposition_text": "proident labore ea id",
        "id": 64551808,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "consectetur ea officia",
        "custom_proposition_text": null,
        "id": 18253333,
        "proposed_to": "non"
      },
      {
        "available": false,
        "code": "aliqua",
        "custom_proposition_text": "adipisici",
        "id": 52624112,
        "proposed_to": "Lorem ullamco"
      }
    ],
    "from": "1995-10-03",
    "ht_price": 52235440.28759587,
    "id": -61718849,
    "multiplier": 16477657,
    "number_of_bookings_left": -78723196,
    "offer_id": -21429101,
    "price": -48875205.37465906,
    "private_office_id": null,
    "resume_coupon": {
      "available": true,
      "company": {},
      "id": 42018718,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": true,
        "ht_price": "id labore minim",
        "ht_price_per_day": "fugiat Ut mollit",
        "id": 29384211,
        "kind": 73189338,
        "marketing_name": "mollit est minim eu",
        "name": "eiusmod ad d",
        "number_of_bookings_per_month": -9190127,
        "one_time": true,
        "period": 99789337,
        "price": "ea proident enim Duis veniam",
        "space_id": -38483243
      },
      "type": "laborum"
    },
    "taxes": 61038140.79607442,
    "to": "1950-05-28"
  }
}

Validation #380

Success

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

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": "Ut et ea Lorem",
        "custom_proposition_text": null,
        "id": -14038214,
        "proposed_to": "tempor"
      },
      {
        "available": true,
        "code": "adipisicing ad do",
        "custom_proposition_text": null,
        "id": 28171393,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "cupidatat culpa",
        "custom_proposition_text": null,
        "id": 55339315,
        "proposed_to": null
      }
    ],
    "from": "1970-02-06",
    "ht_price": 92794815.14236641,
    "id": 95404391,
    "multiplier": 92553804,
    "number_of_bookings_left": -95472057,
    "offer_id": 5493794,
    "price": -82903482.10438427,
    "private_office_id": 72422738,
    "resume_coupon": null,
    "taxes": -18726943.587259054,
    "to": "1951-03-27"
  }
}

Validation #379

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": "exercitation in",
        "custom_proposition_text": null,
        "id": 91205070,
        "proposed_to": null
      },
      {
        "available": false,
        "code": "nulla",
        "custom_proposition_text": null,
        "id": -53256572,
        "proposed_to": "elit irure non incididunt nostrud"
      },
      {
        "available": false,
        "code": "velit consectetur reprehenderit incididunt aliquip",
        "custom_proposition_text": null,
        "id": -96623840,
        "proposed_to": null
      }
    ],
    "from": "2016-10-27",
    "ht_price": 11522967.6180951,
    "id": -50657009,
    "multiplier": -10543522,
    "number_of_bookings_left": 38131212,
    "offer_id": -41135612,
    "price": 54106420.710318655,
    "private_office_id": -73671630,
    "resume_coupon": {
      "available": true,
      "company": {},
      "id": -57639364,
      "offer": {
        "has_access_to_private_offices": false,
        "hidden": false,
        "highlighted": false,
        "ht_price": "elit pariatur ut ad",
        "ht_price_per_day": "officia id consectetur occaecat qui",
        "id": -32926909,
        "kind": 50546598,
        "marketing_name": "cupidatat culpa dolor officia ex",
        "name": "in",
        "number_of_bookings_per_month": -68072157,
        "one_time": false,
        "period": -45955886,
        "price": "commodo et",
        "space_id": 44105604
      },
      "type": ""
    },
    "taxes": 6098963.894499436,
    "to": "1978-09-18"
  }
}

Validation #378

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": "ex",
        "custom_proposition_text": null,
        "id": -32980634,
        "proposed_to": "proident est ad dolor veniam"
      },
      {
        "available": true,
        "code": "minim e",
        "custom_proposition_text": "Ut laboris",
        "id": 6971388,
        "proposed_to": "veniam eu sit eiusmod"
      },
      {
        "available": false,
        "code": "aliqua",
        "custom_proposition_text": null,
        "id": 33001949,
        "proposed_to": null
      }
    ],
    "from": "1960-09-03",
    "ht_price": 29553971.55962403,
    "id": 91424599,
    "multiplier": -1737061,
    "number_of_bookings_left": -73164947,
    "offer_id": -92326890,
    "price": 13896328.551792398,
    "private_office_id": 15447351,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -27218095,
      "offer": {
        "has_access_to_private_offices": false,
        "hidden": false,
        "highlighted": false,
        "ht_price": "nulla cupidatat minim eiusmod ipsum",
        "ht_price_per_day": "nostrud esse cillum",
        "id": 66284964,
        "kind": 50373360,
        "marketing_name": "irure officia",
        "name": "in ad",
        "number_of_bookings_per_month": -43828733,
        "one_time": false,
        "period": 59317524,
        "price": "eu est laborum do",
        "space_id": null
      },
      "type": "consectetur exercitation "
    },
    "taxes": 57488348.87985593,
    "to": "1993-09-02"
  }
}

Validation #377

Success

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

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "subscription": {
      "additionalProperties": false,
      "properties": {
        "from": {
          "description": "Subscription start date",
          "format": "date",
          "type": "string"
        },
        "mandate_url": {
          "type": "string"
        },
        "multiplier": {
          "description": "\tSubscription multiplier of the offer’s price, duration and number_of_bookings_per_month",
          "type": "integer"
        },
        "offer_id": {
          "description": "Subscription offer",
          "type": "integer"
        },
        "origin": {
          "description": "Origin of the subscription, could be ios / android / website",
          "type": "string"
        },
        "stripe": {
          "description": "Two types of stripe objects:\r\nUse a new card\r\n\r\nAttributes\tType\tDescription\r\ntoken_id\tstring\tStripe token id\r\nsave\tboolean\tWhether to save the card for future use or not\r\n\r\nThe token is generated on client side through the Stripe SDK (following this process)\r\n\r\nUse an already saved card:\r\nAttributes\tType\tDescription\r\ncard_id\tstring\tStripe card id\r\n\r\nTo list the cards associated to the user, you should retrieve Stripe customer details through the SDK (stripe_customer_id is an attribute of the User)",
          "type": "object"
        }
      },
      "required": [
        "from",
        "mandate_url",
        "multiplier",
        "offer_id",
        "origin",
        "stripe"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - CreateSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "2010-03-20",
    "mandate_url": "officia esse commodo consectetur eiusmod",
    "multiplier": -45123037,
    "offer_id": -73220008,
    "origin": "irure enim Duis et",
    "stripe": {}
  }
}

Validation #376

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": {
            "type": "string"
          },
          "delivery_types": {
            "items": {
              "$ref": "#/definitions/DefaultCollectDeliveryTypes_878",
              "type": "object"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "harvest": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "market_label": {
            "type": "string"
          },
          "market_reference": {
            "type": "string"
          },
          "marketing_tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturities": {
            "items": {
              "$ref": "#/definitions/DefaultCollectMaturity_877",
              "type": "object"
            },
            "type": "array"
          },
          "picture_url": {
            "type": "string"
          },
          "priority": {
            "type": "integer"
          },
          "product_label": {
            "type": "string"
          },
          "quality_label": {
            "type": "string"
          },
          "quantity_max_per_customer": {
            "type": "number"
          },
          "remaining_quantity": {
            "type": "number"
          },
          "short_description": {
            "type": "string"
          },
          "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 #375

Failure

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

  • The property '#/collection_offers/0' did not contain a required property of 'base_label' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'delivery_types' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'description' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'harvest' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'id' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'market_label' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'market_reference' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'picture_url' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'priority' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'product_label' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'quality_label' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'quantity_max_per_customer' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'remaining_quantity' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'short_description' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'title' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'type' in schema 55f39012-7a7d-5087-8338-9d4391c365a3
  • The property '#/collection_offers/0' did not contain a required property of 'type_label' in schema 55f39012-7a7d-5087-8338-9d4391c365a3

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": {
            "type": "string"
          },
          "delivery_types": {
            "items": {
              "$ref": "#/definitions/DefaultCollectDeliveryTypes_878",
              "type": "object"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "harvest": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "market_label": {
            "type": "string"
          },
          "market_reference": {
            "type": "string"
          },
          "marketing_tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturities": {
            "items": {
              "$ref": "#/definitions/DefaultCollectMaturity_877",
              "type": "object"
            },
            "type": "array"
          },
          "picture_url": {
            "type": "string"
          },
          "priority": {
            "type": "integer"
          },
          "product_label": {
            "type": "string"
          },
          "quality_label": {
            "type": "string"
          },
          "quantity_max_per_customer": {
            "type": "number"
          },
          "remaining_quantity": {
            "type": "number"
          },
          "short_description": {
            "type": "string"
          },
          "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 #374

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": {
            "type": "string"
          },
          "delivery_types": {
            "items": {
              "$ref": "#/definitions/DefaultCollectDeliveryTypes_878",
              "type": "object"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "harvest": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "market_label": {
            "type": "string"
          },
          "market_reference": {
            "type": "string"
          },
          "marketing_tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturities": {
            "items": {
              "$ref": "#/definitions/DefaultCollectMaturity_877",
              "type": "object"
            },
            "type": "array"
          },
          "picture_url": {
            "type": "string"
          },
          "priority": {
            "type": "integer"
          },
          "product_label": {
            "type": "string"
          },
          "quality_label": {
            "type": "string"
          },
          "quantity_max_per_customer": {
            "type": "number"
          },
          "remaining_quantity": {
            "type": "number"
          },
          "short_description": {
            "type": "string"
          },
          "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": []
}