openapi: 3.1.0
info:
  title: Feed
  version: 2.0.0
  description: Schema definition for the Feed entity in the Beckn Mobility domain.
  license:
    name: CC-BY-NC-SA 4.0 International
    url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    Feed:
      x-iri: https://schema.nfh.global/Feed/v2.0
      type: object
      title: Feed
      description: A data publication providing transit or mobility information in
        a standardised format for consumption by applications or planners.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        feedType:
          description: Format of the feed (e.g. GTFS, GTFS_RT, GBFS, NeTEx)
          type: string
        feedId:
          description: Unique identifier for the feed
          type: string
        feedPublisher:
          description: Name of the organisation publishing this feed
          type: string
        feedLanguage:
          description: BCP-47 language code for the feed content
          type: string
        feedStartDate:
          description: Date from which the feed data is valid
          type: string
          format: date-time
        feedEndDate:
          description: Date until which the feed data is valid
          type: string
          format: date-time
        id:
          description: Unique identifier for the catalog
          type: string
        descriptor:
          description: Human-readable description of the catalog
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        tags:
          description: Tags associated with the catalog
          type: string
      additionalProperties: false
