{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genko-me/json-schema/genko-me-content-list-schema.json",
  "title": "ContentList",
  "description": "The listing response for a list-kind API. Returns 200 even when there are no matches, with contents as an empty array.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genko-me-openapi.json#/components/schemas/ContentList",
  "type": "object",
  "required": [
    "contents",
    "totalCount",
    "offset",
    "limit"
  ],
  "properties": {
    "contents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentEntry"
      }
    },
    "totalCount": {
      "type": "integer",
      "minimum": 0,
      "description": "The total count of entries satisfying the publication conditions and filters/q."
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "The starting offset"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "The maximum number of entries returned"
    }
  },
  "$defs": {
    "ContentEntry": {
      "type": "object",
      "description": "A single content entry. User-defined fields appear directly at the top level, keyed by field ID (the value's shape depends on the field type and depth; see https://docs.genko.me/api-reference/values). If fields is specified, only id and the specified keys are included.",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The immutable public content ID (12-character alphanumeric)."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Creation timestamp"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Update timestamp"
        },
        "publishedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Publication timestamp. May be null, such as during a draft preview."
        },
        "_langs": {
          "type": "object",
          "description": "Only present with include=_langs. Not added to expanded referenced entries.",
          "required": [
            "current",
            "available"
          ],
          "properties": {
            "current": {
              "type": "string",
              "description": "The language actually returned (the main language when lang_fallback fell back)."
            },
            "available": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Languages with a published version of this entry, main language first. Sub languages are listed only for multilingual APIs."
            }
          }
        }
      },
      "additionalProperties": true
    }
  }
}