openapi: 3.1.0
info:
  title: VehicleStatus
  version: 2.0.0
  description: Schema definition for the VehicleStatus 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:
    VehicleStatus:
      x-iri: https://schema.nfh.global/VehicleStatus/v2.0
      type: object
      title: VehicleStatus
      description: The real-time operational state of a vehicle or mobility asset,
        such as available, in use, reserved, or disabled.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        statusCode:
          description: Operational status code (e.g. AVAILABLE, IN_USE, RESERVED,
            DISABLED, CHARGING)
          type: string
        batteryLevel:
          description: Current battery charge percentage
          type: number
        rangeMeters:
          description: Estimated remaining range in metres
          type: number
        lastReportedAt:
          description: Timestamp of the last status update
          type: string
          format: date-time
        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
