changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "description": "A recorded work order — fulfilled (contractor matched, HTTP 201) or accepted_pending_fulfilment (no contractor yet, HTTP 202) — or a business/entitlement error passthrough.",
+ "oneOf": [
+ {
+ "properties": {
+ "accepted": {
+ "const": true,
+ "type": "boolean"
+ },
+ "created": {
+ "const": true,
+ "type": "boolean"
+ },
+ "fulfilled": {
+ "type": "boolean"
+ },
+ "fulfilment": {
+ "description": "Present only when fulfilled=false.",
+ "properties": {
+ "assigned": {
+ "const": false,
+ "type": "boolean"
+ },
+ "detail": {
+ "type": "string"
+ },
+ "escalation_contact": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "order": {
+ "additionalProperties": true,
+ "properties": {
+ "assigned_contractor_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "estimated_response_minutes": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "location": {
+ "type": "object"
+ },
+ "quoted_cost_cents": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "quoted_cost_usd": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "status": {
+ "enum": [
+ "pending_dispatch",
+ "accepted_pending_fulfilment"
+ ],
+ "type": "string"
+ },
+ "trade": {
+ "type": "string"
+ },
+ "urgency": {
+ "enum": [
+ "emergency",
+ "urgent",
+ "routine",
+ "scheduled"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "status",
+ "trade",
+ "location",
+ "urgency",
+ "created_at"
+ ],
+ "type": "object"
+ },
+ "tracking": {
+ "properties": {
+ "auth": {
+ "type": "string"
+ },
+ "status_url": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "created",
+ "accepted",
+ "fulfilled",
+ "order",
+ "tracking"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "description": "Business/rate-limit/entitlement error passthrough.",
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+}