changedOutput schema / properties / appointment / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "clientId": {
- "anyOf": [
- {
- "pattern": "^[0-9a-f]{24}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "endTime": {
- "anyOf": [
- {
- "maxLength": 32,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "pattern": "^[0-9a-f]{24}$",
- "type": "string"
- },
- "salonId": {
- "anyOf": [
- {
- "pattern": "^[0-9a-f]{24}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "serviceCount": {
- "maximum": 10000,
- "minimum": 0,
- "type": "integer"
- },
- "services": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "anyOf": [
- {
- "pattern": "^[0-9a-f]{24}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "maxLength": 200,
- "type": "string"
- },
- "price": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "name",
- "price"
- ],
- "type": "object"
- },
- "maxItems": 50,
- "type": "array"
- },
- "servicesTruncated": {
- "type": "boolean"
- },
- "startTime": {
- "anyOf": [
- {
- "maxLength": 32,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "anyOf": [
- {
- "enum": [
- "SCHEDULED",
- "CLIENT_ARRIVED",
- "NO_SHOW",
- "CANCELED"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "clientId",
- "salonId",
- "startTime",
- "endTime",
- "status",
- "serviceCount",
- "servicesTruncated",
- "services"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "clientId": {
+ "anyOf": [
+ {
+ "pattern": "^[0-9a-f]{24}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "endTime": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "pattern": "^[0-9a-f]{24}$",
+ "type": "string"
+ },
+ "lastEditTime": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Version to pass as expectedLastEditTime when moving or cancelling this appointment"
+ },
+ "providerIds": {
+ "description": "Stylists booked on it, as list_providers ids",
+ "items": {
+ "pattern": "^[0-9a-f]{24}$",
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "salonId": {
+ "anyOf": [
+ {
+ "pattern": "^[0-9a-f]{24}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "serviceCount": {
+ "maximum": 10000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "services": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "anyOf": [
+ {
+ "pattern": "^[0-9a-f]{24}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The service, as list_services and book_appointment name it"
+ },
+ "name": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "price": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "price"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "servicesTruncated": {
+ "type": "boolean"
+ },
+ "startTime": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "anyOf": [
+ {
+ "enum": [
+ "SCHEDULED",
+ "CLIENT_ARRIVED",
+ "NO_SHOW",
+ "CANCELED"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "clientId",
+ "salonId",
+ "providerIds",
+ "startTime",
+ "endTime",
+ "status",
+ "lastEditTime",
+ "serviceCount",
+ "servicesTruncated",
+ "services"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]