-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
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
Labels
No labels