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 "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

Comments

@alexl9412
Copy link

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.

        "committee_id": "C00703975",
        "count": null,
        "cycle": 2020,
        "size": 0,
        "total": "543075175.22"

        "candidate_id": "P00009423",
        "count": null,
        "cycle": 2024,
        "size": 0,
        "total": 433025470.17

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

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

No branches or pull requests

1 participant