Validations history

Validation #353

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": "Subscription stripe informations",
          "type": "object"
        }
      },
      "required": [
        "from",
        "mandate_url",
        "multiplier",
        "offer_id",
        "origin",
        "stripe"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - CreateSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1973-01-17",
    "mandate_url": "non eiusmod laborum id",
    "multiplier": -65109547,
    "offer_id": -868560,
    "origin": "exercitation tempor voluptate ullamco id",
    "stripe": {}
  }
}

Validation #352

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": "Subscription stripe informations",
          "type": "object"
        }
      },
      "required": [
        "from",
        "mandate_url",
        "multiplier",
        "offer_id",
        "origin",
        "stripe"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - CreateSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1973-01-17",
    "mandate_url": "non eiusmod laborum id",
    "multiplier": -65109547,
    "offer_id": -868560,
    "origin": "exercitation tempor voluptate ullamco id",
    "stripe": {}
  }
}

Validation #351

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "2007-05-04",
    "id": -16358676,
    "multiplier": 357865,
    "number_of_bookings_left": 33773159,
    "offer_id": -73401053,
    "price": 19274645,
    "private_office_id": 88285147,
    "resume_coupon": {
      "available": true,
      "company": {},
      "id": 54852599,
      "offer": {
        "has_access_to_private_offices": false,
        "hidden": false,
        "highlighted": false,
        "ht_price": "ex incididunt dolore deserunt",
        "ht_price_per_day": "pariatur quis",
        "id": -31459335,
        "kind": 58039447,
        "marketing_name": "ad anim est",
        "name": "culp",
        "number_of_bookings_per_month": 15651868,
        "one_time": true,
        "period": -53350810,
        "price": "nostrud incididunt",
        "space_id": 30362877
      },
      "type": "aliquip exercitation proident"
    },
    "to": "1974-04-27"
  }
}

Validation #350

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #349

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #348

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #347

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #346

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #345

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
  • The property '#/subscription' did not contain a required property of 'coworker_coupons' in schema 95a0d040-ba34-51de-9007-a9bea4ae79cb

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": {},
      "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": {
          "description": "Offer’s space id",
          "type": "integer"
        }
      },
      "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"
        },
        "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": "integer"
        },
        "private_office_id": {
          "description": "Subscription private office id, if offer has access to private offices",
          "type": "integer"
        },
        "resume_coupon": {
          "anyOf": [
            {
              "$ref": "#/definitions/CompanyCoupon_1030",
              "description": "Subscription resume coupon",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "description": "Subscription end date",
          "format": "date",
          "type": "string"
        }
      },
      "required": [
        "coworker_coupons",
        "from",
        "id",
        "multiplier",
        "number_of_bookings_left",
        "offer_id",
        "price",
        "private_office_id",
        "resume_coupon",
        "to"
      ],
      "type": "object"
    }
  },
  "required": [
    "subscription"
  ],
  "title": "Subscription - DefaultSubscription",
  "type": "object"
}

JSON instance

{
  "subscription": {
    "from": "1987-11-04",
    "id": 69053630,
    "multiplier": -25516617,
    "number_of_bookings_left": 57677962,
    "offer_id": 57162268,
    "price": 98454282,
    "private_office_id": 38474501,
    "resume_coupon": {
      "available": false,
      "company": {},
      "id": -84896007,
      "offer": {
        "has_access_to_private_offices": true,
        "hidden": false,
        "highlighted": false,
        "ht_price": "qui Excepteur et",
        "ht_price_per_day": "do sunt consequat",
        "id": 65846644,
        "kind": 99018801,
        "marketing_name": "esse elit adipisicing occaecat",
        "name": "qui in aliquip tempor sint",
        "number_of_bookings_per_month": -35685467,
        "one_time": true,
        "period": 99340135,
        "price": "c",
        "space_id": -67096907
      },
      "type": "ullamco eu"
    },
    "to": "1974-08-15"
  }
}

Validation #344

Success

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

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "stamps_setting": {
      "additionalProperties": false,
      "properties": {
        "nb_stamps_per_customer_day": {
          "minimum": 1,
          "type": "integer"
        },
        "nb_stamps_per_day": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "nb_stamps_per_customer_day",
        "nb_stamps_per_day"
      ],
      "type": "object"
    }
  },
  "required": [
    "stamps_setting"
  ],
  "title": "StampsSetting - StampsSettingRequest",
  "type": "object"
}

JSON instance

{
  "stamps_setting": {
    "nb_stamps_per_customer_day": 57617952,
    "nb_stamps_per_day": 89943563
  }
}