Git Product home page Git Product logo

dashboard-api-go's Issues

400 Bad Request when passing in an array value.

Describe the bug
I'm trying to use this endpoint: https://developer.cisco.com/meraki/api-v1/get-organization-appliance-vpn-statuses/

The docs show I can pass an array of network ids in to limit the data returned. When I try this, I get the following error:

{{"errors":["'networkIds' must be an array"]}}

To Reproduce

		networks := []string{"N_12345678"}
		resp, r, err := apiClient.StatusesApi.GetOrganizationApplianceVpnStatuses(context.Background(), org.ID).NetworkIds(networks).Execute()
		if err != nil {
			log.Infof("Error when calling `StatusesApi.GetOrganizationApplianceVpnStatuses``: %v\n", err)
			log.Infof("Full HTTP response: %v\n", r)
		}
		log.Infof("Response from `StatusesApi.GetOrganizationApplianceVpnStatuses`: %v\n", resp)

The above code for me always errors out. Removing the network parameter works well.

Expected behavior
I would expect a valid http request and filtered results returned.

Make Build One Step

Is your feature request related to a problem? Please describe.
Currently while editing the dashboard templates or regenerating the library with newer specs, it can take a lot of setup and teardown.

Describe the solution you'd like
It would be a good idea to create a Makefile that will take care of the building and code generation for us. Having to run through the commands and clean things up inside the client/ directory is pretty annoying for small changes.

Describe alternatives you've considered
We could theoretically make the template a separate repo and vendor in the OpenAPI spec, but I think for now it would be best to have a Makefile that runs through all the commands inside of the README in the client/ directory.

Error on GetOrganizationDevicesStatuses unmarshal in OrganizationApi

Describe the bug
json: cannot unmarshal object into Go struct field GetOrganizationDevicesStatuses200ResponseInnerComponents.components.powerSupplies of type string

currently marked as type []string in API

see meraki/openapi#50

To Reproduce
Steps to reproduce the behavior:

  1. Example Code
statuses, _, err = client.OrganizationsApi.GetOrganizationDevicesStatuses(ctx, orgID).Execute()
if err != nil {
     log.Fatal(err)
}

Expected behavior
No Error

Desktop (please complete the following information):

  • Dashboard-API-Go v1.35.0

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.