{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listme-name/json-schema/listme-name-alternatives-schema.json",
  "title": "Alternatives",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listme-name-openapi.yml#/components/schemas/Alternatives",
  "type": "object",
  "required": [
    "for",
    "alternatives"
  ],
  "properties": {
    "for": {
      "$ref": "#/$defs/ProductBrief"
    },
    "count": {
      "type": "integer"
    },
    "page": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "alternatives": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number"
          },
          "shared_lists": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "why_consider": {
            "type": "string"
          },
          "product": {
            "$ref": "#/$defs/ProductBrief"
          }
        }
      }
    }
  },
  "$defs": {
    "ProductBrief": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "kind",
        "page"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "app",
            "web",
            "service",
            "resource",
            "book"
          ]
        },
        "tagline": {
          "type": "string"
        },
        "pricing": {
          "type": "string",
          "enum": [
            "free",
            "freemium",
            "paid",
            "subscription",
            "one-time",
            "open-source",
            "usage-based",
            "contact"
          ]
        },
        "free_to_use": {
          "type": "boolean"
        },
        "open_source": {
          "type": "boolean"
        },
        "platforms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "formats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "website": {
          "type": "string",
          "format": "uri"
        },
        "page": {
          "type": "string",
          "format": "uri"
        },
        "json": {
          "type": "string",
          "format": "uri"
        },
        "cover": {
          "type": "string",
          "format": "uri"
        },
        "top_ranking": {
          "type": "object",
          "properties": {
            "list": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "rank": {
              "type": "integer"
            },
            "of": {
              "type": "integer"
            },
            "score": {
              "type": "number"
            }
          }
        },
        "connected_to_publisher": {
          "type": "boolean",
          "description": "Made by or connected to the publisher; see /methodology."
        }
      }
    }
  }
}