Skip to content

Commit 7b1f29a

Browse files
committed
fix
1 parent 98adf28 commit 7b1f29a

4 files changed

Lines changed: 12 additions & 57 deletions

File tree

docs/docs.go

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ const docTemplate = `{
393393
"200": {
394394
"description": "OK",
395395
"schema": {
396-
"$ref": "#/definitions/github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse"
396+
"type": "object",
397+
"additionalProperties": {
398+
"type": "string"
399+
}
397400
}
398401
},
399402
"400": {
@@ -612,26 +615,6 @@ const docTemplate = `{
612615
}
613616
}
614617
},
615-
"github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse": {
616-
"type": "object",
617-
"properties": {
618-
"powertrainType": {
619-
"type": "string"
620-
},
621-
"profileRaw": {
622-
"type": "array",
623-
"items": {
624-
"type": "integer"
625-
}
626-
},
627-
"vendor": {
628-
"type": "string"
629-
},
630-
"vin": {
631-
"type": "string"
632-
}
633-
}
634-
},
635618
"internal_api_handlers.DecodeVINRequest": {
636619
"type": "object",
637620
"properties": {

docs/swagger.json

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@
384384
"200": {
385385
"description": "OK",
386386
"schema": {
387-
"$ref": "#/definitions/github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse"
387+
"type": "object",
388+
"additionalProperties": {
389+
"type": "string"
390+
}
388391
}
389392
},
390393
"400": {
@@ -603,26 +606,6 @@
603606
}
604607
}
605608
},
606-
"github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse": {
607-
"type": "object",
608-
"properties": {
609-
"powertrainType": {
610-
"type": "string"
611-
},
612-
"profileRaw": {
613-
"type": "array",
614-
"items": {
615-
"type": "integer"
616-
}
617-
},
618-
"vendor": {
619-
"type": "string"
620-
},
621-
"vin": {
622-
"type": "string"
623-
}
624-
}
625-
},
626609
"internal_api_handlers.DecodeVINRequest": {
627610
"type": "object",
628611
"properties": {

docs/swagger.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,6 @@ definitions:
131131
year:
132132
type: integer
133133
type: object
134-
github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse:
135-
properties:
136-
powertrainType:
137-
type: string
138-
profileRaw:
139-
items:
140-
type: integer
141-
type: array
142-
vendor:
143-
type: string
144-
vin:
145-
type: string
146-
type: object
147134
internal_api_handlers.DecodeVINRequest:
148135
properties:
149136
countryCode:
@@ -417,7 +404,9 @@ paths:
417404
"200":
418405
description: OK
419406
schema:
420-
$ref: '#/definitions/github_com_DIMO-Network_device-definitions-api_internal_core_queries.GetVINProfileResponse'
407+
additionalProperties:
408+
type: string
409+
type: object
421410
"400":
422411
description: Bad Request
423412
"404":

internal/api/handlers/device_definition_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func GetDeviceDefinitionByID(m mediator.Mediator) fiber.Handler {
103103
// @Tags device-definitions
104104
// @Param vin path string true "17 character usa based VIN eg. WBA12345678901234"
105105
// @Produce json
106-
// @Success 200 {object} queries.GetVINProfileResponse
106+
// @Success 200 {object} map[]string{}
107107
// @Failure 404
108108
// @Failure 400
109109
// @Failure 500

0 commit comments

Comments
 (0)