You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: