{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-feature-list-response-schema.json",
  "title": "FeatureListResponse",
  "description": "Paginated list of features",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-features-api-openapi.yml#/components/schemas/FeatureListResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/PublicFeatureResponse"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "page",
    "page_size",
    "has_more"
  ],
  "$defs": {
    "FeatureStatusInfo": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "FeatureStatusInfo",
      "description": "Feature status info"
    },
    "PublicFeatureResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "pub_id": {
          "type": "integer",
          "title": "Pub Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/FeatureStatusInfo"
            },
            {
              "type": "null"
            }
          ]
        },
        "priority": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Priority"
        },
        "effort": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effort"
        },
        "is_archived": {
          "type": "boolean",
          "title": "Is Archived",
          "default": false
        },
        "upvotes_count": {
          "type": "integer",
          "title": "Upvotes Count",
          "default": 0
        },
        "feedback_count": {
          "type": "integer",
          "title": "Feedback Count",
          "default": 0
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "pub_id",
        "title",
        "created_at",
        "updated_at"
      ],
      "title": "PublicFeatureResponse",
      "description": "Feature response for Public API"
    }
  }
}