{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-authority-identifier-type-dto-collection-schema.json",
  "title": "authorityIdentifierTypeDtoCollection",
  "description": "A collection of authority identifier types",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-authority-identifier-type-api-openapi.yml#/components/schemas/authorityIdentifierTypeDtoCollection",
  "properties": {
    "identifierTypes": {
      "description": "List of authority identifier types",
      "items": {
        "$ref": "#/$defs/authorityIdentifierTypeDto"
      },
      "type": "array"
    },
    "totalRecords": {
      "description": "Total amount of records",
      "type": "integer"
    }
  },
  "required": [
    "identifierTypes",
    "totalRecords"
  ],
  "type": "object",
  "$defs": {
    "authorityIdentifierTypeDto": {
      "description": "An authority identifier type",
      "properties": {
        "id": {
          "description": "Unique ID of the authority identifier type; a UUID",
          "format": "uuid",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.id",
          "x-fqm-essential": true
        },
        "name": {
          "description": "Name of the authority identifier type",
          "type": "string",
          "x-fqm-essential": true,
          "x-fqm-id-column-name": "id",
          "x-fqm-visible-by-default": true,
          "x-fqm-value-getter": ":sourceAlias.name",
          "x-fqm-value-source-api": {
            "path": "authority-identifier-types",
            "valueJsonPath": "$.identifierTypes.*.id",
            "labelJsonPath": "$.identifierTypes.*.name"
          }
        },
        "code": {
          "description": "Stable human-readable code of the authority identifier type",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.code"
        },
        "source": {
          "description": "Label indicating where the authority identifier type entry originates from, i.e. 'folio' or 'local'",
          "type": "string",
          "x-fqm-ignore": true
        },
        "metadata": {
          "$ref": "#/$defs/metadata"
        }
      },
      "required": [
        "code",
        "name",
        "source"
      ],
      "type": "object"
    },
    "metadata": {
      "description": "Creater, updater, creation date, last updated date",
      "properties": {
        "createdDate": {
          "description": "Date and time when the record was created",
          "format": "date-time",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.created_date",
          "x-fqm-value-function": "(:value)::timestamp"
        },
        "createdByUserId": {
          "description": "ID of the user who created the record (when available)",
          "format": "uuid",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.created_by_user_id"
        },
        "updatedDate": {
          "description": "Date and time when the record was last updated",
          "format": "date-time",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.updated_date",
          "x-fqm-value-function": "(:value)::timestamp"
        },
        "updatedByUserId": {
          "description": "ID of the user who last updated the record (when available)",
          "format": "uuid",
          "type": "string",
          "x-fqm-value-getter": ":sourceAlias.updated_by_user_id"
        }
      },
      "type": "object"
    }
  }
}