openapi: 3.1.0
info:
  title: OccupancyStatus
  version: 2.0.0
  description: Schema definition for the OccupancyStatus entity in the Beckn Mobility
  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:
    OccupancyStatus:
      x-iri: https://schema.nfh.global/OccupancyStatus/v2.0
      type: object
      title: OccupancyStatus
      description: An indicator of the current passenger load level of a vehicle,
        such as empty, many seats available, or full.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        occupancyLevel:
          description: Occupancy level (EMPTY, MANY_SEATS_AVAILABLE, FEW_SEATS_AVAILABLE,
            STANDING_ROOM_ONLY, FULL, NOT_ACCEPTING_PASSENGERS)
          type: string
        availableSeats:
          description: Estimated number of seats currently available
          type: number
        totalSeats:
          description: Total seating capacity of the vehicle
          type: number
        id:
          description: Unique identifier for the state
          type: string
        descriptor:
          description: Human-readable description of the state
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        updatedAt:
          description: Timestamp when the state was last updated
          type: string
          format: date-time
      additionalProperties: false
