{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genialis/main/json-schema/genialis-paginated-feature-list-schema.json",
  "title": "PaginatedFeatureList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genialis-kb-api-openapi.yml#/components/schemas/PaginatedFeatureList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Feature"
      }
    }
  },
  "$defs": {
    "Feature": {
      "type": "object",
      "description": "Serializer for feature.",
      "properties": {
        "aliases": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 256
          }
        },
        "description": {
          "type": "string"
        },
        "feature_id": {
          "type": "string",
          "maxLength": 50
        },
        "full_name": {
          "type": "string",
          "maxLength": 350
        },
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 1024
        },
        "source": {
          "type": "string",
          "maxLength": 20
        },
        "species": {
          "type": "string",
          "maxLength": 50
        },
        "sub_type": {
          "$ref": "#/$defs/SubTypeEnum"
        },
        "type": {
          "$ref": "#/$defs/FeatureTypeEnum"
        }
      },
      "required": [
        "feature_id",
        "id",
        "name",
        "source",
        "species",
        "sub_type",
        "type"
      ]
    },
    "FeatureTypeEnum": {
      "enum": [
        "gene",
        "transcript",
        "exon",
        "probe"
      ],
      "type": "string",
      "description": "* `gene` - Gene\n* `transcript` - Transcript\n* `exon` - Exon\n* `probe` - Probe"
    },
    "SubTypeEnum": {
      "enum": [
        "protein-coding",
        "pseudo",
        "rRNA",
        "ncRNA",
        "snRNA",
        "snoRNA",
        "tRNA",
        "asRNA",
        "other",
        "unknown"
      ],
      "type": "string",
      "description": "* `protein-coding` - Protein-coding\n* `pseudo` - Pseudo\n* `rRNA` - rRNA\n* `ncRNA` - ncRNA\n* `snRNA` - snRNA\n* `snoRNA` - snoRNA\n* `tRNA` - tRNA\n* `asRNA` - asRNA\n* `other` - Other\n* `unknown` - Unknown"
    }
  }
}