{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deputy/json-schema/deputy-pay-policy-latest-version-get-latest-version-response-schema.json",
  "title": "Get latest active version of pay policy response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deputy-compliance-api-openapi.yml#/components/schemas/PayPolicyLatestVersionGetLatestVersionResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "$ref": "#/$defs/modelPayPolicyVersion"
    }
  },
  "$defs": {
    "modelPayPolicyVersion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "employmentType": {
          "$ref": "#/$defs/tenantcompliancev2modelEmploymentType"
        },
        "effectiveDate": {
          "type": "string"
        },
        "award": {
          "type": "string"
        },
        "subType": {
          "type": "string"
        },
        "deprecationDate": {
          "type": "string"
        }
      }
    },
    "tenantcompliancev2modelEmploymentType": {
      "type": "string",
      "enum": [
        "EMPLOYMENT_TYPE_UNKNOWN",
        "EMPLOYMENT_TYPE_FULL_TIME",
        "EMPLOYMENT_TYPE_PART_TIME",
        "EMPLOYMENT_TYPE_CASUAL",
        "EMPLOYMENT_TYPE_CONTRACTOR",
        "EMPLOYMENT_TYPE_HOURLY",
        "EMPLOYMENT_TYPE_SALARY",
        "EMPLOYMENT_TYPE_GENERIC"
      ],
      "default": "EMPLOYMENT_TYPE_UNKNOWN",
      "description": "In the code this is also referred to as employment status\n(employment_status DB table column)."
    }
  }
}