API docs: Column.selectionOptions is an array, not a string
Open
Beginner friendly
Nobody has claimed this yet.
0. Needs triage
bug
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 52
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 82
Description
Steps to reproduce
- Create a table with a normal select field
- Fetch table column description via v1 API:
/index.php/apps/tables/api/1/tables/23/columns - Compare
selectionOptionsvalue with API definition - See that it's an array and not a string
Expected behavior
The API docs should reflect the actual return value.
Actual behavior
The API docs for /index.php/apps/tables/api/1/tables/23/columns tell us that
selectionOptions*: string
This is wrong. At least the v1 API returns an array:
"textUnique": false,
"selectionOptions": [
{
"id": 0,
"label": "Erste Einstellung"
},
{
"id": 1,
"label": "Zweite Einstellung"
}
],
"selectionDefault": "[]",
Tables app version
1.0.3
Browser
Firefox 149
Client operating system
Linux
Operating system
Debian 13
Web server
Nginx
PHP engine version
PHP 8.2
Database
MariaDB
Additional info
No response
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 locating the v1 API documentation for /index.php/apps/tables/api/1/tables/23/columns and inspect the schema for Column.selectionOptions. Update the documented type to match the returned array of id/label objects, then verify the documentation agrees with the example response.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100