{
  "type": "object",
  "required": [
    "need"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "buy",
        "source",
        "quote",
        "verify",
        "lease",
        "license",
        "hire",
        "retrieve",
        "convert",
        "other"
      ],
      "description": "What you want done"
    },
    "need": {
      "type": "string",
      "maxLength": 2000,
      "description": "The requirement in your own words"
    },
    "specifications": {
      "type": "object",
      "properties": {
        "task_type": {
          "type": "string",
          "enum": [
            "PHOTOGRAPHS",
            "MEASUREMENTS",
            "CONDITION_CHECK",
            "RETAIL_AUDIT",
            "DOCUMENT_PICKUP",
            "PRESENCE_CHECK",
            "OTHER"
          ],
          "description": "Kind of task",
          "x-facet": "specification"
        },
        "site": {
          "type": "string",
          "maxLength": 200,
          "description": "Business or public address, or a description of the place",
          "x-facet": "geography"
        },
        "site_type": {
          "type": "string",
          "enum": [
            "COMMERCIAL",
            "INDUSTRIAL",
            "RETAIL",
            "VACANT_LAND",
            "PUBLIC_PLACE",
            "OTHER"
          ],
          "description": "Kind of place",
          "x-facet": "specification"
        },
        "complete_by": {
          "type": "string",
          "maxLength": 40,
          "description": "Date the task must be done (YYYY-MM-DD)",
          "x-facet": "timing"
        },
        "deliverables": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 120
          },
          "maxItems": 15,
          "description": "What must come back: photos, video, measurements, a signed receipt",
          "x-facet": "specification"
        },
        "access_arranged": {
          "type": "boolean",
          "description": "Whether the site has agreed to the visit",
          "x-facet": "specification"
        },
        "visits": {
          "type": "integer",
          "minimum": 1,
          "description": "Number of sites or visits",
          "x-facet": "quantity"
        }
      }
    },
    "quantity": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "per": {
          "type": "string"
        }
      }
    },
    "timing": {
      "type": "object",
      "properties": {
        "earliest": {
          "type": "string"
        },
        "latest": {
          "type": "string"
        },
        "recurrence": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    },
    "geography": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      }
    },
    "budget": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217, default USD"
        },
        "per": {
          "type": "string",
          "description": "total, unit, month, year, load, ..."
        }
      }
    },
    "requested_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 30,
      "description": "Result fields you need"
    },
    "contact": {
      "type": "object",
      "description": "Optional; stored apart and deleted after 180 days",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        }
      }
    }
  }
}