{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-authority-note-type-dto-schema.json",
  "title": "authorityNoteTypeDto",
  "description": "An Authority note type",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-mod-entities-links-openapi.yml#/components/schemas/authorityNoteTypeDto",
  "properties": {
    "id": {
      "description": "Unique ID of the Authority note type; a UUID",
      "format": "uuid",
      "type": "string",
      "x-fqm-value-getter": ":sourceAlias.id",
      "x-fqm-essential": true
    },
    "name": {
      "description": "Name of the Authority note 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-note-types",
        "valueJsonPath": "$.authorityNoteTypes.*.id",
        "labelJsonPath": "$.authorityNoteTypes.*.name"
      }
    },
    "source": {
      "description": "label indicating where the Authority note type entry originates from, i.e. 'folio' or 'local'",
      "type": "string",
      "x-fqm-ignore": true
    },
    "metadata": {
      "$ref": "#/$defs/metadata"
    }
  },
  "required": [
    "name",
    "source"
  ],
  "type": "object",
  "$defs": {
    "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"
    }
  }
}