openapi: 3.1.1
info:
  title: Form
  version: 2.1.0
  description: Describes a form
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    Form:
      x-iri: https://schema.nfh.global/Form/v2.1
      description: Describes a form
      title: Form
      type: object
      properties:
        data:
          description: The form submission data
          type: object
          additionalProperties:
            type: string
        mimeType:
          description: This field indicates the nature and format of the form received
            by querying the url. MIME types are defined and standardized in IETF's
            RFC 6838.
          type: string
        submissionId:
          type: string
          format: uuid
        url:
          description: The URL from where the form can be fetched. The content fetched
            from the url must be processed as per the mimeType specified in this object.
            Once fetched, the rendering platform can choosed to render the form as-is
            as an embeddable element; or process it further to blend with the theme
            of the application. In case the interface is non-visual, the the render
            can process the form data and reproduce it as per the standard specified
            in the form.
          type: string
          format: uri
      required: []
      x-tags:
      - common
