Skip to content

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

@cweiske

Description

@cweiske

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions