Skip to content

/networks/{networkId}/appliance/vlans returns wrong type for id #54

@onlineque

Description

@onlineque

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions