Skip to content

/networks/{networkId}/clients: mismatched type for firstSeen and lastSeen #79

@askurydzin

Description

@askurydzin

Prerequisites

  • Have you tested the operation in the API directly?
  • Do you have the latest SDK version?
  • Review compability matrix

Describe the bug

Generated golang code in SDK follows the same mistake OpenAPI spec distributed by Cisco made:

    "/networks/{networkId}/clients": {
      "get": {
        "description": "List the clients that have used this network in the timespan. The data is updated at most once every five minutes.",
        "operationId": "getNetworkClients",
 ...
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
...
                      "firstSeen": {
                        "type": "integer",
                        "description": "Timestamp client was first seen in the network"
                      },
                      "lastSeen": {
                        "type": "integer",
                        "description": "Timestamp client was last seen in the network"
                      },
...

However, when doing queries locally, I'm observing RFC3339 timestamp string is returned, and SDK is returning pointer to 0 instead of unix timestamp or something.

Expected behavior

I believe SDK source OpenAPI schema should be patched in order to produce compatible response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions