-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello,
when I try to use https://github.com/meraki/dashboard-api-go to get the result of GetNetworkApplianceVlans in its ApplianceApi, which points to this in openapi spec:
"/networks/{networkId}/appliance/vlans": {
"get": {
"description": "List the VLANs for an MX network",
"operationId": "getNetworkApplianceVlans",
"parameters": [
{
"name": "networkId",
"in": "path",
"description": "Network ID",
"schema": {
"type": "string"
},
"required": true
}
],
"responses": {
"200": {
"description": "Successful operation",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The VLAN ID of the VLAN"
},
The parameter id in its response is returned by the Meraki dashboard API call as an integer, not as string (as wrongly seen in the specification above), causing the dashboard-api-go to fail as it is generated from it:
2024/03/19 21:56:16 error reading VLANs: json: cannot unmarshal number into Go struct field GetNetworkApplianceVlans200ResponseInner.id of type string
Could you fix it, please ?
Thanks !
Metadata
Metadata
Assignees
Labels
No labels