openapi: 3.1.1
info:
  title: DiscoverAction
  version: 2.0.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:
    DiscoverAction:
      x-iri: https://schema.nfh.global/DiscoverAction/v2.0
      title: Discover Action (External)
      description: 'Beckn /beckn/discover message payload as published at schema.nfh.global.

        Requires all discover qualifiers to be nested inside an `intent`

        container object.

        (Context wrapper stripped; only the message-content portion is inlined.)'
      type: object
      properties:
        intent:
          $ref: https://schema.nfh.global/Intent/v2.0/attributes.yaml#/components/schemas/Intent
        text_search:
          type: string
          description: Legacy flat free-text discover query
        textSearch:
          type: string
          description: Flat free-text discover query
      additionalProperties: false
      required:
      - intent
