{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-parsed-record-content-collection-schema.json",
  "title": "parsedRecordContentCollection",
  "description": "Collection of SRS records content",
  "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/parsedRecordContentCollection",
  "properties": {
    "records": {
      "description": "List of records content",
      "items": {
        "$ref": "#/$defs/parsedRecordContent"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "FieldContent_value": {
      "properties": {
        "ind1": {
          "description": "Identifier 1",
          "type": "string"
        },
        "ind2": {
          "description": "Identifier 2",
          "type": "string"
        },
        "subfields": {
          "description": "List of subfields",
          "items": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Map of subfields",
            "type": "object"
          },
          "type": "array"
        },
        "linkDetails": {
          "$ref": "#/$defs/linkDetails"
        }
      },
      "type": "object"
    },
    "linkDetails": {
      "description": "Collection of SRS records content",
      "properties": {
        "authorityId": {
          "description": "Authority ID",
          "format": "uuid",
          "type": "string"
        },
        "authorityNaturalId": {
          "description": "Authority Natural ID",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/linkStatus"
        },
        "linkingRuleId": {
          "description": "Linking rule ID",
          "type": "integer"
        },
        "errorCause": {
          "description": "Error status code",
          "type": "string"
        }
      },
      "type": "object"
    },
    "linkStatus": {
      "description": "Link status",
      "enum": [
        "ACTUAL",
        "ERROR",
        "NEW"
      ],
      "type": "string"
    },
    "parsedRecordContent": {
      "additionalProperties": false,
      "description": "Parsed record content, e.g. MARC record",
      "properties": {
        "fields": {
          "description": "List of fields",
          "items": {
            "additionalProperties": {
              "$ref": "#/$defs/FieldContent_value"
            },
            "description": "Map of marc fields",
            "maxProperties": 1,
            "title": "FieldContent",
            "type": "object"
          },
          "type": "array"
        },
        "leader": {
          "description": "Parsed record content, e.g. MARC record",
          "type": "string"
        }
      },
      "required": [
        "fields",
        "leader"
      ],
      "type": "object"
    }
  }
}