Mews · Schema

Rule condition

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Value string Value of the condition depending on the property. E.g. `ReservationOrigin` in case of origin condition or unique identifier of a rate in case of rate condition.
ConditionType object
View JSON Schema on GitHub

JSON Schema

mews-rulecondition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RuleCondition",
  "title": "Rule condition",
  "required": [
    "ConditionType",
    "Value"
  ],
  "type": "object",
  "properties": {
    "Value": {
      "minLength": 1,
      "type": "string",
      "description": "Value of the condition depending on the property. E.g. `ReservationOrigin` in case of origin condition or unique identifier of a rate in case of rate condition."
    },
    "ConditionType": {
      "$ref": "#/components/schemas/RuleConditionType"
    }
  },
  "additionalProperties": false,
  "x-schema-id": "RuleCondition"
}