openapi: 3.1.1
info:
  title: Feedback
  version: 2.0.0
  description: Schema for Feedback in Beckn Logistics domain.
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    LogisticsFeedback:
      x-iri: https://schema.nfh.global/LogisticsFeedback/v2.0
      type: object
      title: Feedback
      description: Qualitative feedback from sender or receiver about a logistics experience.
      properties:
        id:
          type: string
          example: FBK-001
        shipmentId:
          type: string
        rating:
          $ref: https://schema.nfh.global/Rating/v2.1/attributes.yaml#/components/schemas/Rating
        review:
          type: string
          description: Free text review
          example: Driver was very professional and delivered on time.
        tags:
          type: array
          description: Structured feedback tags
          items:
            type: string
          example:
          - ON_TIME
          - PROFESSIONAL_DRIVER
          - GOOD_PACKAGING
        wouldRecommend:
          type: boolean
          example: true
        submittedBy:
          type: string
          description: User ID of feedback submitter
        submittedAt:
          type: string
          format: date-time
        isPublic:
          type: boolean
          description: Whether feedback is publicly visible
          example: true
