{
  "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": {
        "manufacturer": {
          "type": "string",
          "maxLength": 120,
          "description": "Manufacturer or brand",
          "x-facet": "identifier"
        },
        "part_number": {
          "type": "string",
          "maxLength": 80,
          "description": "Manufacturer part or catalog number",
          "x-facet": "identifier"
        },
        "model": {
          "type": "string",
          "maxLength": 120,
          "description": "Model or series name",
          "x-facet": "identifier"
        },
        "condition": {
          "type": "string",
          "enum": [
            "NEW",
            "NEW_SURPLUS",
            "REFURBISHED",
            "USED",
            "REPAIR_EXCHANGE",
            "ANY"
          ],
          "description": "Acceptable condition",
          "x-facet": "specification"
        },
        "units": {
          "type": "integer",
          "minimum": 1,
          "description": "How many",
          "x-facet": "quantity"
        },
        "needed_by": {
          "type": "string",
          "maxLength": 40,
          "description": "Date it must arrive (YYYY-MM-DD)",
          "x-facet": "timing"
        },
        "ship_to": {
          "type": "string",
          "maxLength": 120,
          "description": "Delivery city, state or postal code",
          "x-facet": "geography"
        },
        "documentation": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 120
          },
          "maxItems": 10,
          "description": "Reports, certificates or evidence you require",
          "x-facet": "specification"
        }
      }
    },
    "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"
        }
      }
    }
  }
}