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
The "total" property in the "/v1/schedules/schedule_a/by_size/" and "/v1/schedules/schedule_a/by_size/by_candidate/" endpoints return different types
#6073
Open
alexl9412 opened this issue
Dec 8, 2024
· 0 comments
The "/v1/schedules/schedule_a/by_size/" and "/v1/schedules/schedule_a/by_size/by_candidate/" endpoints have roughly the same data structure; however, in one the "total" property returns a string and in the other, a double. It would be helpful if the "total" property returned a double in both cases, not only for consistency but also to simplify the JSON decoding in my application.
What we’re after
The "/v1/schedules/schedule_a/by_size/" and "/v1/schedules/schedule_a/by_size/by_candidate/" endpoints have roughly the same data structure; however, in one the "total" property returns a string and in the other, a double. It would be helpful if the "total" property returned a double in both cases, not only for consistency but also to simplify the JSON decoding in my application.
Action item(s)
Convert the type of the "total" property in the "/v1/schedules/schedule_a/by_size/" endpoint from a string to a double.
Completion criteria
The "total" property in the "/v1/schedules/schedule_a/by_size/" endpoint returns a value of type double.
References/resources/technical considerations
See sample JSON above or the following URLs: https://api.open.fec.gov/v1/schedules/schedule_a/by_size/by_candidate?candidate_id=P00009423&cycle=2024 and https://api.open.fec.gov/v1/schedules/schedule_a/by_size?committee_id=C00703975&cycle=2024
The text was updated successfully, but these errors were encountered: