{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listme-name/json-schema/listme-name-product-record-schema.json",
  "title": "ProductRecord",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listme-name-openapi.yml#/components/schemas/ProductRecord",
  "type": "object",
  "required": [
    "product",
    "rankings"
  ],
  "properties": {
    "product": {
      "$ref": "#/$defs/Product"
    },
    "rankings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "list": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "format": "uri"
          },
          "rank": {
            "type": "integer"
          },
          "of": {
            "type": "integer"
          },
          "score": {
            "type": "number"
          },
          "verdict": {
            "type": "string"
          },
          "best_for": {
            "type": "string"
          }
        }
      }
    },
    "alternatives": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "links": {
      "type": "object"
    }
  },
  "$defs": {
    "Product": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "kind",
        "website",
        "page"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "website": {
          "type": "string",
          "format": "uri"
        },
        "page": {
          "type": "string",
          "format": "uri"
        },
        "tagline": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "developer": {
          "type": "string"
        },
        "author": {
          "type": "string"
        },
        "platforms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "formats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "pricing": {
          "type": "string"
        },
        "price_note": {
          "type": "string"
        },
        "free_to_use": {
          "type": "boolean"
        },
        "open_source": {
          "type": "boolean"
        },
        "license": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "format": "uri"
        },
        "strengths": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "limits": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "assessment": {
          "type": "string",
          "enum": [
            "documentation"
          ],
          "description": "Documentation-based assessment, not hands-on testing."
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "title",
              "url"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        },
        "checked": {
          "type": "string",
          "format": "date",
          "description": "Date the facts were last checked against the vendor."
        },
        "connected_to_publisher": {
          "type": "boolean"
        },
        "cover": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}