{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-public-feature-response-schema.json",
  "title": "PublicFeatureResponse",
  "description": "Feature response for Public API",
  "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/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"
  ],
  "$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"
    }
  }
}