-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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!