{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": ["jobs"],
  "properties": {
    "url": { "type": "string" },
    "language": { "enum": ["Haskell", "Elixir", "F#"] },
    "textField": { "enum": ["description", "details"] },
    "jobs": {
      "type": "array", "minItems": 1, "maxItems": 25,
      "items": {
        "type": "object", "required": ["id", "title", "company", "location"],
        "properties": {
          "id": { "type": "string", "minLength": 1, "maxLength": 2000 },
          "title": { "type": "string", "minLength": 1, "maxLength": 2000 },
          "company": { "type": "string", "minLength": 1, "maxLength": 2000 },
          "location": { "type": "string", "minLength": 1, "maxLength": 2000 },
          "description": { "type": "string", "minLength": 1, "maxLength": 2000 },
          "details": { "type": "string", "minLength": 1, "maxLength": 2000 }
        },
        "anyOf": [{ "required": ["description"] }, { "required": ["details"] }],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
