]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
api-viewer: implement basic oneOf support
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 16 Nov 2023 15:21:52 +0000 (16:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 08:58:17 +0000 (09:58 +0100)
commite34b0f4a12e04a2b9d8cc750cbbe6238508e0e13
treef88b4acbaf5317f6e18f3ae7ecbb98807e200b8b
parent60e1c5623370e2988e0bb474ca6d42f3193c18b8
api-viewer: implement basic oneOf support

for parameters only for now, also only implement the basic use case we
want to have currently: use in section config apis where we have more
than one type.

we could improve upon that, e.g. by properly grouping the type relevant
options, and also implementing that for return types.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api-viewer/APIViewer.js