{
  "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": {
        "work_type": {
          "type": "string",
          "enum": [
            "PHOTOGRAPH",
            "FOOTAGE",
            "MUSIC_COMPOSITION",
            "SOUND_RECORDING",
            "FONT",
            "ILLUSTRATION",
            "PATENT",
            "TEXT",
            "OTHER"
          ],
          "description": "Kind of work",
          "x-facet": "specification"
        },
        "work_identifier": {
          "type": "string",
          "maxLength": 200,
          "description": "Title, ISRC, ISWC, patent number, font name or a link to the work",
          "x-facet": "identifier"
        },
        "intended_use": {
          "type": "string",
          "maxLength": 200,
          "description": "How the work will be used",
          "x-facet": "specification"
        },
        "media": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 60
          },
          "maxItems": 10,
          "description": "Media the licence must cover",
          "x-facet": "specification"
        },
        "territory": {
          "type": "string",
          "maxLength": 120,
          "description": "Countries or regions",
          "x-facet": "geography"
        },
        "term_months": {
          "type": "integer",
          "minimum": 1,
          "description": "Length of the licence in months",
          "x-facet": "timing"
        },
        "exclusivity": {
          "type": "string",
          "enum": [
            "NON_EXCLUSIVE",
            "EXCLUSIVE",
            "EXCLUSIVE_IN_FIELD"
          ],
          "description": "Exclusivity required",
          "x-facet": "specification"
        },
        "units": {
          "type": "integer",
          "minimum": 0,
          "description": "Copies, impressions, units or seats covered",
          "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"
        }
      }
    }
  }
}