Skip to content
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

The DataPoints object is not a map #1

Open
bigokro opened this issue Dec 24, 2020 · 0 comments
Open

The DataPoints object is not a map #1

bigokro opened this issue Dec 24, 2020 · 0 comments

Comments

@bigokro
Copy link

bigokro commented Dec 24, 2020

According to documentation, the DataPoints object is meant to be a map, in order to support multiple distinct JSON data formats. However, the actual implementation is as a struct with no properties whatsoever. In my project, I need to access the document number, but this is not possible given the implementation (basically, none of the data points data is returned to the user of this library).

I see that the API is auto-generated via a swagger file, and that its definition for data points isn't according to map definitions. If you're using go-swagger, their format is something like:

my_map_ref: # <- map type: object additionalProperties: type: object properties: 'y': type: integer

I've never used it, so I'm not sure if that would produce a map[int]interface{} or a map[interface{}]int, or what, but would you be able to make this adjustment?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant