openapi: 3.1.1
info:
  title: Descriptor
  version: 2.1.0
  description: "Container schemas fetched from beckn.yaml. This cannot be extended as it is a reserved schema in beckn protocol. Any additional properties added to this schema can only be made using its *Attributes property"
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    Descriptor:
      x-iri: https://schema.nfh.global/Descriptor/v2.1
      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/attributes.yaml#/components/schemas/Document
        mediaFile:
          description: Links to multimedia files and images
          type: array
          items:
            $ref: https://schema.nfh.global/MediaFile/v2.0/attributes.yaml#/components/schemas/MediaFile
      additionalProperties: false
