mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-09 14:08:16 +02:00
support changing capabilities on provider integrations
This commit is contained in:
@@ -112,5 +112,15 @@ export function refineProviderUpstreamFields(
|
||||
path: ["capabilities"]
|
||||
});
|
||||
}
|
||||
} else if (
|
||||
data.capabilities !== undefined &&
|
||||
data.capabilities !== null &&
|
||||
data.capabilities.length === 0
|
||||
) {
|
||||
ctx.addIssue({
|
||||
code: "custom",
|
||||
message: "At least one capability is required",
|
||||
path: ["capabilities"]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user