{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://empregoexterior.com/api/schemas/vaga-3.1.schema.json",
  "title": "Pesquisa real — projeção pública sem identificação empresarial da oportunidade",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "positions_label",
    "area",
    "education",
    "checked_date",
    "opportunity_type",
    "eligibility_note",
    "contract",
    "weekly_hours",
    "source_kind",
    "profession",
    "requirements",
    "hours_text",
    "deadline_date",
    "valid_through",
    "is_fictional",
    "id",
    "date_posted",
    "visa",
    "experience",
    "country",
    "positions",
    "availability",
    "language",
    "salary",
    "schema_version",
    "links"
  ],
  "properties": {
    "positions_label": {
      "type": "string"
    },
    "area": {
      "type": "string"
    },
    "education": {
      "type": "string"
    },
    "checked_date": {
      "type": "string"
    },
    "opportunity_type": {
      "type": "string"
    },
    "eligibility_note": {
      "type": "string"
    },
    "contract": {
      "type": "string"
    },
    "weekly_hours": {
      "type": [
        "number",
        "null"
      ]
    },
    "source_kind": {
      "enum": [
        "GOVERNMENT",
        "EMPLOYER"
      ]
    },
    "profession": {
      "type": "string"
    },
    "requirements": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hours_text": {
      "type": "string"
    },
    "deadline_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid_through": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_fictional": {
      "const": false
    },
    "id": {
      "type": "string",
      "pattern": "^OP-[0-9]{4}$"
    },
    "date_posted": {
      "type": [
        "string",
        "null"
      ]
    },
    "visa": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "requirement",
        "types",
        "type_status",
        "document_kind",
        "existing_work_right_required",
        "employer_support",
        "label",
        "note",
        "exemption_note"
      ],
      "properties": {
        "requirement": {
          "enum": [
            "REQUIRED_FOR_NEW_HIRE_FROM_ABROAD",
            "EXISTING_WORK_RIGHT_REQUIRED",
            "STATUS_DEPENDENT",
            "NOT_REQUIRED_CONFIRMED",
            "NOT_SPECIFIED"
          ]
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "type_status": {
          "enum": [
            "PUBLISHED_PROGRAM",
            "OFFICIAL_ROUTE_TO_CONFIRM",
            "STATUS_DEPENDENT",
            "NOT_SPECIFIED"
          ]
        },
        "document_kind": {
          "type": "string"
        },
        "existing_work_right_required": {
          "type": "boolean"
        },
        "employer_support": {
          "enum": [
            "NOT_CONFIRMED",
            "PROGRAM_PUBLISHED",
            "CASE_BY_CASE",
            "NOT_OFFERED",
            "SUPPORT_PUBLISHED",
            "GROUP_POLICY",
            "EMPLOYER_PROCESSING"
          ]
        },
        "label": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "exemption_note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "experience": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "positions": {
      "type": [
        "integer",
        "null"
      ]
    },
    "availability": {
      "enum": [
        "OPEN_AS_LAST_CHECK",
        "CLOSED",
        "EXPIRED"
      ]
    },
    "language": {
      "type": "string"
    },
    "salary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "amount",
        "min",
        "max",
        "brl_amount",
        "brl_min",
        "brl_max",
        "exchange_rate",
        "currency",
        "unit",
        "rate_date",
        "label"
      ],
      "properties": {
        "amount": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "min": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "max": {
          "type": [
            "number",
            "null"
          ]
        },
        "brl_amount": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "brl_min": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "brl_max": {
          "type": [
            "number",
            "null"
          ]
        },
        "exchange_rate": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "unit": {
          "enum": [
            "hour",
            "month",
            "year"
          ]
        },
        "rate_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "label": {
          "type": "string"
        }
      }
    },
    "schema_version": {
      "const": "3.1.0"
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "html",
        "json"
      ],
      "properties": {
        "html": {
          "type": "string",
          "format": "uri"
        },
        "json": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
