{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aistoryhub-co/json-schema/aistoryhub-co-story-schema.json",
  "title": "Story",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aistoryhub-co-openapi.json#/components/schemas/Story",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "genre": {
      "type": [
        "string",
        "null"
      ]
    },
    "tense": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "mood": {
      "type": [
        "string",
        "null"
      ]
    },
    "time_period": {
      "type": [
        "string",
        "null"
      ]
    },
    "tone": {
      "type": [
        "string",
        "null"
      ]
    },
    "pov": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_public": {
      "type": "boolean"
    },
    "word_count": {
      "type": "integer"
    },
    "target_word_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "cover_image_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}