{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presscart-com/json-schema/presscart-com-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presscart-com-openapi.json#/components/schemas/Product",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "logo": {
      "type": [
        "string",
        "null"
      ]
    },
    "example_screenshot": {
      "type": [
        "string",
        "null"
      ]
    },
    "stripe_product_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "type_id": {
      "type": "string",
      "format": "uuid"
    },
    "active": {
      "type": "boolean"
    },
    "requirements": {
      "type": [
        "string",
        "null"
      ]
    },
    "submission_requirements": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "version": {
          "type": "number",
          "enum": [
            1
          ]
        },
        "lifespan": {
          "type": "object",
          "properties": {
            "months": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "exclusiveMinimum": true
            },
            "permanent": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "guaranteed": {
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "required": [
            "months",
            "permanent",
            "guaranteed"
          ],
          "additionalProperties": false
        },
        "availability": {
          "type": "object",
          "properties": {
            "on_hold": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "slight_delay": {
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "required": [
            "on_hold",
            "slight_delay"
          ],
          "additionalProperties": false
        },
        "content": {
          "type": "object",
          "properties": {
            "min_words": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "max_words": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "max_links": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "original_only": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "ai_content_allowed": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "first_person_allowed": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "subheadings_required": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "title": {
              "type": "object",
              "properties": {
                "min_characters": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "max_characters": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "no_special_symbols": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "case": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "sentence",
                    "title",
                    "upper",
                    "lower"
                  ]
                }
              },
              "required": [
                "min_characters",
                "max_characters",
                "no_special_symbols",
                "case"
              ],
              "additionalProperties": false
            },
            "subtitle": {
              "type": "object",
              "properties": {
                "required": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "min_characters": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "max_characters": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                }
              },
              "required": [
                "required",
                "min_characters",
                "max_characters"
              ],
              "additionalProperties": false
            },
            "images": {
              "type": "object",
              "properties": {
                "min": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "max": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0
                },
                "width": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0,
                  "exclusiveMinimum": true
                },
                "height": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0,
                  "exclusiveMinimum": true
                },
                "credit_required": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "ai_generated_allowed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "allowed_sources": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "maxItems": 50
                },
                "stock_link_required": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "min",
                "max",
                "width",
                "height",
                "credit_required",
                "ai_generated_allowed",
                "allowed_sources",
                "stock_link_required"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "min_words",
            "max_words",
            "max_links",
            "original_only",
            "ai_content_allowed",
            "first_person_allowed",
            "subheadings_required",
            "title",
            "subtitle",
            "images"
          ],
          "additionalProperties": false
        },
        "other_requirements": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "maxItems": 50
        }
      },
      "required": [
        "version",
        "lifespan",
        "availability",
        "content",
        "other_requirements"
      ],
      "additionalProperties": false
    },
    "min_delivery_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "max_delivery_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "is_featured": {
      "type": "boolean"
    },
    "example_links": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "llm_aeo": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "YES",
        "NO",
        "MAYBE",
        "DISCRETE"
      ]
    },
    "created_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "image",
    "logo",
    "example_screenshot",
    "stripe_product_id",
    "type_id",
    "active",
    "requirements",
    "submission_requirements",
    "min_delivery_days",
    "max_delivery_days",
    "is_featured",
    "example_links",
    "llm_aeo",
    "created_at",
    "updated_at",
    "deleted_at"
  ]
}