changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "outcome": {
- "enum": [
- "ok"
- ],
- "type": "string"
- },
- "slots": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "end_iso": {
- "format": "date-time",
- "type": "string"
- },
- "provider_id": {
- "type": "string"
- },
- "provider_name": {
- "type": "string"
- },
- "start_iso": {
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "start_iso",
- "end_iso",
- "provider_id"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "timezone": {
- "type": "string"
- }
- },
- "required": [
- "outcome",
- "timezone",
- "slots"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "detail": {
- "description": "A short user-safe explanation.",
- "type": "string"
- },
- "outcome": {
- "description": "A stable failure category.",
- "enum": [
- "validation_error",
- "rate_limited",
- "internal_error"
- ],
- "type": "string"
- },
- "reason": {
- "description": "A stable machine-readable reason.",
- "type": "string"
- },
- "retry_after_sec": {
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "outcome",
- "reason",
- "detail"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "bookable": {
+ "type": "boolean"
+ },
+ "booking_mode": {
+ "enum": [
+ "instant",
+ "approval_required"
+ ],
+ "type": "string"
+ },
+ "notice": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "ok"
+ ],
+ "type": "string"
+ },
+ "slots": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "end_iso": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "provider_id": {
+ "type": "string"
+ },
+ "provider_name": {
+ "type": "string"
+ },
+ "start_iso": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start_iso",
+ "end_iso",
+ "provider_id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "status_reason": {
+ "enum": [
+ "suspended",
+ "agent_booking_disabled",
+ "no_booking_section"
+ ],
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "outcome",
+ "timezone",
+ "slots"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "detail": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "validation_error",
+ "rate_limited",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_sec": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "outcome",
+ "reason",
+ "detail"
+ ],
+ "type": "object"
+ }
+]