nextcloud / nextcloud/tables

API docs: Column.selectionOptions is an array, not a string

Open Beginner friendly
#2,415 0 comments 0 reactions 0 assignees View on GitHub

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
  1. Create a table with a normal select field
  2. Fetch table column description via v1 API: /index.php/apps/tables/api/1/tables/23/columns
  3. Compare selectionOptions value with API definition
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.