{
  "$id": "https://schema.nfh.global/Descriptor/v2.1",
  "x-iri": "https://schema.nfh.global/Descriptor/v2.1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Schema definition for Descriptor in the Beckn Protocol v2.0.1",
  "title": "Descriptor",
  "type": "object",
  "properties": {
    "code": {
      "description": "A machine-readable code identifying the state or type of the entity being described. The valid values for this field are defined by the context in which the Descriptor is used (e.g. DRAFT, ACTIVE, CANCELLED, COMPLETE for a Contract status).",
      "type": "string"
    },
    "longDesc": {
      "description": "Detailed description of the item",
      "type": "string",
      "example": "Powerful gaming laptop with NVIDIA RTX graphics, fast SSD storage, and high-refresh display"
    },
    "shortDesc": {
      "description": "Short description of the item",
      "type": "string",
      "example": "High-performance gaming laptop with RTX graphics"
    },
    "name": {
      "description": "Name of the entity being described",
      "type": "string",
      "example": "Premium Gaming Laptop Pro"
    },
    "thumbnailImage": {
      "description": "Name of the entity being described",
      "type": "string",
      "format": "uri"
    },
    "docs": {
      "description": "Links to downloadable business/supporting documents",
      "type": "array",
      "items": {
        "$ref": "https://schema.nfh.global/Document/v2.0/schema.json"
      }
    },
    "mediaFile": {
      "description": "Links to multimedia files and images",
      "type": "array",
      "items": {
        "$ref": "https://schema.nfh.global/MediaFile/v2.0/schema.json"
      }
    }
  },
  "additionalProperties": false
}
