{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-content-fragment-list-result-schema.json",
  "title": "ContentFragmentListResult",
  "description": "Paginated collection of content fragments.\n",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-content-fragments-delivery-openapi.yml#/components/schemas/ContentFragmentListResult",
  "type": "object",
  "properties": {
    "items": {
      "description": "List of Content Fragments",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentFragment"
      }
    },
    "cursor": {
      "$ref": "#/$defs/Cursor"
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "Base64URLId": {
      "type": "string",
      "minLength": 1,
      "description": "The `base64url` encoded representation of the resource path.\n\nThis should be encoded using base64url (URL-safe base64), without padding (no `=` at the end), and using `-`\nand `_` instead of `+` and `/`.\n",
      "pattern": "^[A-Za-z0-9_-]+$"
    },
    "BooleanField": {
      "description": "A Boolean value",
      "type": "boolean"
    },
    "ContentFragment": {
      "description": "A representation of a Content Fragment.",
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/UUID"
        },
        "path": {
          "$ref": "#/$defs/ContentFragmentPath"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "The name of the Content Fragment Resource."
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "description": "The title of the Content Fragment."
        },
        "description": {
          "type": "string",
          "description": "Content Fragment description."
        },
        "model": {
          "$ref": "#/$defs/ContentFragmentModelIdentifier"
        },
        "fields": {
          "$ref": "#/$defs/ContentFragmentFields"
        }
      },
      "required": [
        "id",
        "path",
        "name",
        "title",
        "model",
        "fields"
      ]
    },
    "ContentFragmentFields": {
      "type": "object",
      "description": "A field value of one of the supported types.",
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "#/$defs/TextField"
          },
          {
            "$ref": "#/$defs/LongNumberField"
          },
          {
            "$ref": "#/$defs/DoubleNumberField"
          },
          {
            "$ref": "#/$defs/BooleanField"
          },
          {
            "$ref": "#/$defs/DateField"
          },
          {
            "$ref": "#/$defs/DateTimeField"
          },
          {
            "$ref": "#/$defs/TimeField"
          },
          {
            "$ref": "#/$defs/LongTextField"
          },
          {
            "$ref": "#/$defs/EnumerationField"
          },
          {
            "$ref": "#/$defs/JsonField"
          },
          {
            "$ref": "#/$defs/TagField"
          },
          {
            "$ref": "#/$defs/ContentReferenceField"
          },
          {
            "$ref": "#/$defs/FragmentReferenceField"
          }
        ]
      }
    },
    "ContentFragmentModelIdentifier": {
      "type": "object",
      "description": "Minimal information about a Content Fragment Model.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Base64URLId"
        }
      },
      "required": [
        "id"
      ]
    },
    "ContentFragmentPath": {
      "type": "string",
      "minLength": 1,
      "pattern": "^\\/content\\/dam(\\/.*)?$",
      "description": "A valid path to a Content Fragment resource."
    },
    "ContentReferenceField": {
      "description": "References to various content types like: plain text, rich text, content fragments,  images, audio clips or video clips",
      "oneOf": [
        {
          "$ref": "#/$defs/URN",
          "title": "Single value"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "$ref": "#/$defs/URN"
          }
        }
      ]
    },
    "Cursor": {
      "description": "A cursor is an opaque string that can be used in API calls which support paginating the response. A non-existent cursor\nsignifies that the returned list does not have more elements.\n",
      "type": "string",
      "minLength": 1
    },
    "DateField": {
      "description": "A date with the format yyyy-MM-dd",
      "type": "string",
      "format": "date"
    },
    "DateTimeField": {
      "description": "An offset date-time with the format yyyy-MM-dd'T'HH:mm:ss±hh:mm",
      "type": "string",
      "format": "date-time"
    },
    "DoubleNumberField": {
      "oneOf": [
        {
          "type": "integer",
          "format": "double",
          "title": "Single value",
          "description": "A fractional (double-precision) number"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "type": "integer",
            "format": "double",
            "description": "A fractional (double-precision) number"
          }
        }
      ]
    },
    "EnumerationField": {
      "oneOf": [
        {
          "type": "string",
          "description": "The enumeration key defined in the model",
          "title": "Single value"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "type": "string",
            "description": "The enumeration key defined in the model"
          }
        }
      ]
    },
    "FragmentReferenceField": {
      "description": "The references to Content Fragments",
      "oneOf": [
        {
          "$ref": "#/$defs/UUID",
          "title": "Single value"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "$ref": "#/$defs/UUID"
          }
        }
      ]
    },
    "JsonField": {
      "description": "The JSON data",
      "type": "object"
    },
    "LongNumberField": {
      "oneOf": [
        {
          "type": "integer",
          "format": "int64",
          "title": "Single value",
          "description": "A long number"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "description": "A long number",
            "type": "integer",
            "format": "int64"
          }
        }
      ]
    },
    "LongTextField": {
      "oneOf": [
        {
          "type": "object",
          "title": "Single value",
          "properties": {
            "value": {
              "type": "string",
              "description": "A longer text, like a paragraph"
            },
            "mimeType": {
              "$ref": "#/$defs/MimeType"
            }
          }
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "A longer text, like a paragraph"
              },
              "mimeType": {
                "$ref": "#/$defs/MimeType"
              }
            }
          }
        }
      ]
    },
    "MimeType": {
      "type": "string",
      "description": "The mime type of a multiline text field",
      "enum": [
        "text/html",
        "text/plain",
        "text/x-markdown",
        "text/markdown"
      ]
    },
    "TagField": {
      "description": "A field containing references to cq:Tags",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagId"
      },
      "uniqueItems": true
    },
    "TagId": {
      "description": "Tag identifier",
      "type": "string"
    },
    "TextField": {
      "oneOf": [
        {
          "type": "string",
          "title": "Single value",
          "description": "A string value"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "type": "string",
            "description": "A string value"
          }
        }
      ]
    },
    "TimeField": {
      "oneOf": [
        {
          "type": "string",
          "format": "time",
          "title": "Single value",
          "description": "The time information in the HH:mm:ss format"
        },
        {
          "type": "array",
          "title": "Multi value",
          "items": {
            "type": "string",
            "format": "time",
            "description": "The time information in the HH:mm:ss format"
          }
        }
      ]
    },
    "URN": {
      "description": "A URN schema object",
      "type": "string",
      "minLength": 1,
      "pattern": "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-z0-9()+,-.:=@;$_!*'%/?#]+$"
    },
    "UUID": {
      "description": "Resource unique identifier",
      "type": "string",
      "minLength": 36,
      "format": "uuid"
    }
  }
}