openapi: 3.1.0
info:
  title: VehicleType
  version: 2.0.0
  description: Schema definition for the VehicleType 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:
    VehicleType:
      x-iri: https://schema.nfh.global/VehicleType/v2.0
      type: object
      title: VehicleType
      description: A class or category of vehicle defined by its mode of transport,
        capacity, propulsion type, and accessibility features.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        vehicleTypeCode:
          description: Code identifying the vehicle type (e.g. BUS, TRAM, METRO, BICYCLE,
            SCOOTER)
          type: string
        maxCapacity:
          description: Maximum number of passengers the vehicle type can carry
          type: number
        propulsionType:
          description: Propulsion type (e.g. ELECTRIC, COMBUSTION, HUMAN, HYBRID)
          type: string
        wheelchairAccessible:
          description: Whether vehicles of this type are wheelchair accessible
          type: boolean
        id:
          description: Unique identifier for the category code
          type: string
        descriptor:
          description: Human-readable label for the category
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        parentCategoryId:
          description: Identifier of the parent category if hierarchical
          type: string
      additionalProperties: false
