Skip to content

Commit 46af801

Browse files
committed
fix(vehiclespecificationfleetv1): initial working client
1 parent f621c82 commit 46af801

25 files changed

+401
-1940
lines changed

api/vehiclespecificationv1/01-original.yaml renamed to api/vehiclespecificationfleetv1/01-original.yaml

Lines changed: 120 additions & 156 deletions
Large diffs are not rendered by default.

api/vehiclespecificationv1/02-overlayed.yaml renamed to api/vehiclespecificationfleetv1/02-overlayed.yaml

Lines changed: 22 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
### Vehicle Specification API
1+
### Vehicle Specification Fleet API
22
### date 23.09.2025
33
openapi: 3.0.3
44
info:
5-
title: Vehicle Specification
6-
version: '1.8'
7-
description: "Vehicle Specification provides vehicle specification information \nrelevant for online marketing purposes."
5+
title: Vehicle Specification Fleet
6+
version: '1.2'
7+
description: "Vehicle Specification Fleet provides vehicle specification information \nrelevant for fleet use cases."
88
contact:
99
name: Mercedes-Benz /developers product team
1010
url: 'https://developer.mercedes-benz.com/contact/vehicle_specification/technical_inquiry'
1111
servers:
12-
- url: 'https://api.mercedes-benz.com/vehicle_specifications/v1'
12+
- url: 'https://api.mercedes-benz.com/vehicle_specifications_fleet/v1'
1313
description: Production server
1414
security:
1515
- ApiKey: []
1616
tags:
1717
- name: Specification
1818
description: Get marketing information
19-
- name: Equipments
20-
description: Get extended equipments information
19+
- name: Images
20+
description: Get vehicle images
2121
components:
2222
schemas:
2323
# response schema objects
@@ -29,18 +29,16 @@ components:
2929
properties:
3030
vehicleData:
3131
$ref: '#/components/schemas/VehicleData'
32-
VehicleEquipmentsResponse:
33-
description: |-
34-
The response object contains the vehicle equipments data of the
35-
requested vehicle and locale
36-
type: array
37-
uniqueItems: true
38-
minItems: 0
39-
maxItems: 200
40-
items:
41-
$ref: '#/components/schemas/EquipmentData'
42-
x-go-type-skip-optional-pointer: true
43-
x-omitzero: true
32+
VehicleImagesResponse:
33+
type: object
34+
properties:
35+
EXT150:
36+
$ref: '#/components/schemas/ImageId'
37+
EXT330:
38+
$ref: '#/components/schemas/ImageId'
39+
INT1:
40+
$ref: '#/components/schemas/ImageId'
41+
description: The response object contains the image ids of all available perspectives.
4442
CabinInfo:
4543
type: object
4644
properties:
@@ -504,89 +502,11 @@ components:
504502
vehicleMassKg:
505503
type: integer
506504
format: int32
507-
# equipments schema objects
508-
EquipmentData:
509-
type: object
510-
properties:
511-
code:
512-
type: string
513-
x-go-type-skip-optional-pointer: true
514-
highlight:
515-
type: boolean
516-
mercedesMe:
517-
type: boolean
518-
categoryPathEnglish:
519-
type: string
520-
x-go-type-skip-optional-pointer: true
521-
salesDesignationEnglish:
522-
type: string
523-
x-go-type-skip-optional-pointer: true
524-
entity:
525-
$ref: '#/components/schemas/EquipmentTranslation'
526-
EquipmentTranslation:
527-
type: object
528-
properties:
529-
salesDesignation:
530-
type: string
531-
x-go-type-skip-optional-pointer: true
532-
shortDescription:
533-
type: string
534-
x-go-type-skip-optional-pointer: true
535-
footnote:
536-
type: string
537-
x-go-type-skip-optional-pointer: true
538-
coreArgument:
539-
type: string
540-
x-go-type-skip-optional-pointer: true
541-
extendedDescription:
542-
type: object
543-
properties:
544-
headline:
545-
type: string
546-
x-go-type-skip-optional-pointer: true
547-
text:
548-
type: string
549-
x-go-type-skip-optional-pointer: true
550-
functionText:
551-
type: string
552-
x-go-type-skip-optional-pointer: true
553-
components:
554-
$ref: '#/components/schemas/EquipmentComponents'
555-
EquipmentComponent:
556-
type: object
557-
required:
558-
- content
559-
- components
560-
properties:
561-
content:
562-
type: string
563-
uniqueItems: true
564-
minItems: 0
565-
maxItems: 20
566-
x-go-type-skip-optional-pointer: true
567-
components:
568-
type: array
569-
items:
570-
$ref: '#/components/schemas/EquipmentComponent'
571-
x-go-type-skip-optional-pointer: true
572-
x-omitzero: true
573-
EquipmentComponents:
574-
type: object
575-
required:
576-
- components
577-
properties:
578-
bulletpointsHeadline:
579-
type: string
580-
x-go-type-skip-optional-pointer: true
581-
components:
582-
type: array
583-
uniqueItems: true
584-
minItems: 0
585-
maxItems: 20
586-
items:
587-
$ref: '#/components/schemas/EquipmentComponent'
588-
x-go-type-skip-optional-pointer: true
589-
x-omitzero: true
505+
# images schema objects
506+
ImageId:
507+
type: string
508+
description: String representing the image id.
509+
x-go-type-skip-optional-pointer: true
590510
# common schema objects
591511
Locales:
592512
type: string
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
2-
package: vehiclespecificationv1
2+
package: vehiclespecificationfleetv1
33

4-
output: vehiclespecificationv1.gen.go
4+
output: vehiclespecificationfleetv1.gen.go
55

66
generate:
77
models: true
@@ -13,6 +13,3 @@ output-options:
1313
skip-prune: true
1414
name-normalizer: ToCamelCaseWithInitialisms
1515
initialism-overrides: true
16-
additional-initialisms:
17-
- VIN
18-
- FIN
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package vehiclespecificationfleetv1
2+
3+
//go:generate echo [vehiclespecificationfleetv1] copying original...
4+
//go:generate cp vehicle_specification_fleet.yaml 01-original.yaml
5+
6+
//go:generate echo [vehiclespecificationfleetv1] applying overlay...
7+
//go:generate sh -c "go tool -modfile ../../tools/go.mod openapi-overlay apply overlay.yaml 01-original.yaml > 02-overlayed.yaml"
8+
9+
//go:generate echo [vehiclespecificationfleetv1] generating code...
10+
//go:generate go tool -modfile ../../tools/go.mod oapi-codegen -config config.yaml 02-overlayed.yaml
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package vehiclespecificationfleetv1
2+
3+
// BaseURL is the base URL for the Vehicle Specification Fleet API.
4+
const BaseURL = "https://api.mercedes-benz.com/vehicle_specifications_fleet/v1"

0 commit comments

Comments
 (0)