api: PCI mappings: complete return schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-19 06:58:33 +02:00
parent 7becf34fdd
commit d4830b941f

View File

@ -61,12 +61,15 @@ __PACKAGE__->register_method ({
description => "A description of the logical mapping.", description => "A description of the logical mapping.",
}, },
error => { error => {
type => "array",
optional => 1,
description => "A list of errors when 'check_node' is given.", description => "A list of errors when 'check_node' is given.",
items => { items => {
type => 'object', type => 'object',
properties => { properties => {
severity => { severity => {
type => "string", type => "string",
enum => ['warning', 'error'],
description => "The severity of the error", description => "The severity of the error",
}, },
message => { message => {