JSON API: Return integers and floats unquoted
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
The JSON API partly provides values as strings, although they probably should be numbers. Some examples:
-
https://www.openml.org/api/v1/json/data/15 ->
id,file_id(also note thatdidandfile_idare integers during the list api call, c.f. https://www.openml.org/api/v1/json/data/list//limit/5/offset/10) -
https://www.openml.org/api/v1/json/data/qualities/55 ->
value -
https://www.openml.org/api/v1/json/data/features/55 ->
number_of_missing_values -
https://www.openml.org/api/v1/json/task/50 ->
task_idtask_type_id, ...
Is there a way to get these values without the quotes? This blows up the client code with type conversions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the JSON returned by the data, data/list, data/qualities, data/features, and task API endpoints named in the issue. Locate the PHP handlers and serialization path for these endpoints, then verify that integer and floating-point fields are emitted as JSON numbers without quotes across the affected responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100