{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/benchling/main/json-schema/benchling-features-paginated-list-schema.json",
  "title": "FeaturesPaginatedList",
  "description": "A paginated list of features",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benchling-feature-libraries-api-openapi.yml#/components/schemas/FeaturesPaginatedList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "properties": {
        "features": {
          "description": "List of features for the page",
          "items": {
            "$ref": "#/$defs/Feature"
          },
          "type": "array"
        }
      }
    }
  ],
  "type": "object",
  "$defs": {
    "Feature": {
      "allOf": [
        {
          "$ref": "#/$defs/FeatureBase"
        },
        {
          "properties": {
            "id": {
              "description": "The id of the feature",
              "type": "string"
            },
            "matchType": {
              "description": "The match type of the feature. Used to determine how auto-annotate matches are made.",
              "enum": [
                "nucleotide",
                "protein"
              ],
              "type": "string"
            }
          }
        }
      ],
      "description": "A feature from a feature library",
      "type": "object"
    },
    "FeatureBase": {
      "properties": {
        "color": {
          "description": "The color of the annotations generated by the feature. Must be a valid hex string",
          "type": "string"
        },
        "featureLibraryId": {
          "description": "The id of the feature library the feature belongs to",
          "type": "string"
        },
        "featureType": {
          "description": "The type of feature, like gene, promoter, etc. Note: This is an arbitrary string, not an enum\n",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "The name of the feature",
          "type": "string"
        },
        "pattern": {
          "description": "The pattern used for matching during auto-annotation.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Pagination": {
      "properties": {
        "nextToken": {
          "type": "string"
        }
      }
    }
  }
}