{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-custom-field-definition-schema.json",
  "title": "CustomFieldDefinition",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-custom-fields-api-openapi.yml#/components/schemas/CustomFieldDefinition",
  "type": "object",
  "required": [
    "name",
    "scope",
    "type"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "scope": {
      "type": "string",
      "enum": [
        "company",
        "employment"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "string",
        "number",
        "boolean",
        "date",
        "enum",
        "multiselect"
      ]
    },
    "options": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "For enum/multiselect types."
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "description": {
      "type": "string"
    }
  }
}