-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create response object schema definitions #3
Comments
+1 |
+1 |
+1 I had opened an issue (#156) but @TKIPisalegacycipher told me it wasn't for now. |
Schema objects are on our ToDo list. |
@dexterlabora - this is great news! Keep all these improvements coming - the Meraki API rocks👍🏼 |
This impacts development of my Golang API Library, so as a temporary solution I've forked the schema and will be adding objects and submitting PR's if that will help accelerate this effort. |
By popular request... response schemas are now being included in all future endpoints, with 1/3 of existing endpoints being updated in the latest release so far! |
Here is an update : |
@dexterlabora Just trying to understand the post above that @av1m mentioned, should all calls have "complete" response schemas at this point in time? I see it in some but some of the calls I use like networks/{networkId}/clients/{clientId}/usageHistory still only say "array of object" with an example and no object schema yet. That one's example gives relatively small numbers for the "sent" and "received" values which doesn't make it clear to library authors that the values are 64-bit leading to bugs like json deserialization failing in some SDK's because the response includes values larger than 32-bit. The response to that call seems to be the same as networks/{networkId}/sm/devices/{deviceId}/cellularUsageHistory which documents the same properties (albeit as type=number,format=float, when it seems like they should be type=integer,format=int64, but that's much lower priority since float at least covers the larger range and should prevent deserialization failures)
|
In fact @jamesmanning, some schemas are missing, such as the one you mention ( But in the idea, if the documentation is complete, you shouldn't have this kind of problem. For your example, we need this schema : Actual
Expected
|
Hey all. For the Meraki OpenAPI definition, rather than listing responses as
object
s and using the example field to demonstrate the format, please use OpenAPI schema objects and$ref
(example). Any clients generated from this current definition will basically return raw maps. It would be better if these generated custom response objects.The text was updated successfully, but these errors were encountered: