GET /access/users/{userid} has parameter 'tokens' with 'additionalProperties' containing object definition

Jona Draaijer jcdra1 at gmail.com
Mon Apr 1 22:00:58 CEST 2024


Hi,

As per the title, that endpoint has an additionalProperties value that is
not a bool, but rather an object definition. (It's defined in
pve-access-control/src/PVE/API2/User.pm).

As far as I can tell, all other 'additionalProperties' are bools. Does
anyone know why this specific one is different, or if this difference is
intentional?

>From the looks of it it seems like it's used as a "we need this standard
option, but also have to make it optional". I am still quite new to perl,
so I don't know if there is a way to do what was intended.

Kind regards,

Johannes


More information about the pve-devel mailing list