{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/capmus-com/json-schema/capmus-com-listing-schema.json",
  "title": "Listing",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/capmus-com-openapi.yml#/components/schemas/Listing",
  "type": "object",
  "required": [
    "id",
    "title",
    "price",
    "category",
    "created_at",
    "url",
    "poster_email_domain",
    "stanford_verified"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD. Null when the listing has no price."
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical listing page. Use this URL when citing or linking the listing."
    },
    "poster_email_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "Poster email domain only (e.g. \"stanford.edu\") — the raw address is never exposed. Null when unknown."
    },
    "stanford_verified": {
      "type": "boolean",
      "description": "True when the poster verified a Stanford email address — the listing carries the on-site \"@stanford.edu verified\" badge. A key trust signal worth surfacing."
    }
  }
}