{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1password/json-schema/1password-customer-app-field-page-schema.json",
  "title": "CustomerAppFieldPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/1password-applications-api-openapi.yml#/components/schemas/CustomerAppFieldPage",
  "type": "object",
  "properties": {
    "next": {
      "type": "string",
      "description": "The URL of the next page of results. Absent when there are no more results."
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppField"
      },
      "description": "The page of results."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AppField": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The custom field's unique ID"
        },
        "name": {
          "type": "string",
          "description": "The custom field's display name"
        },
        "lookupKey": {
          "type": "string",
          "description": "The lookup key used as the field's key in the customFields object"
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/CustomerAppFieldType"
            }
          ],
          "description": "The custom field's value type"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AppFieldOption"
          },
          "description": "For option-type fields, the available options"
        },
        "showInAppHub": {
          "type": "boolean",
          "description": "Whether the field is shown in the App Hub"
        },
        "showInReporting": {
          "type": "boolean",
          "description": "Whether the field is available in reporting"
        }
      },
      "additionalProperties": false,
      "description": "An application custom field definition"
    },
    "AppFieldOption": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The option's ID, used as its value"
        },
        "label": {
          "type": "string",
          "description": "The option's display label"
        }
      },
      "additionalProperties": false,
      "description": "An option that an option-type custom field can take"
    },
    "CustomerAppFieldType": {
      "enum": [
        "Number",
        "Text",
        "Option",
        "Date",
        "Link",
        "Person",
        "Email",
        "Currency"
      ],
      "type": "string"
    }
  }
}