openapi: 3.1.0
info:
  title: Operator
  version: 2.0.0
  description: Schema definition for the Operator 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:
    Operator:
      x-iri: https://schema.nfh.global/Operator/v2.0
      type: object
      title: Operator
      description: An organization that provides and operates public transport or
        shared mobility services under a defined service agreement.
      x-tags:
        - mobility
        - schema-org
        - transmodel-netex
        - ride-hailing
      properties:
        operatorId:
          description: Unique identifier for the operator
          type: string
        operatingRegions:
          description: Geographic regions where the operator provides services
          type: string
        licenseNumber:
          description: Regulatory license or accreditation number
          type: string
        contactInfo:
          description: Public contact information for the operator
          type: string
        id:
          description: Unique identifier for the provider
          type: string
        descriptor:
          description: Human-readable description of the provider
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        categories:
          description: Service categories offered by the provider
          $ref: https://schema.nfh.global/CategoryCode/v2.1/attributes.yaml#/components/schemas/CategoryCode
        locations:
          description: Locations where the provider offers services
          $ref: https://schema.nfh.global/Location/v2.0/attributes.yaml#/components/schemas/Location
        items:
          description: Items available for discovery from this provider
          $ref: https://schema.nfh.global/Item/v2.1/attributes.yaml#/components/schemas/Item
        ratingsTotal:
          description: Total number of ratings received
          type: number
        rating:
          description: Aggregate rating of the provider
          $ref: https://schema.nfh.global/Rating/v2.0/attributes.yaml#/components/schemas/Rating
      additionalProperties: false
