mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
14 lines
403 B
TypeScript
14 lines
403 B
TypeScript
import { SchemaOf, object, array, string, bool } from 'yup';
|
|
|
|
import { Values } from './types';
|
|
|
|
export function validation(): SchemaOf<Values> {
|
|
return object({
|
|
capabilities: array()
|
|
.of(string().default(''))
|
|
.default(['compute', 'utility']),
|
|
enabled: bool().default(false),
|
|
selectedGPUs: array().of(string()).default(['all']),
|
|
useSpecific: bool().default(false),
|
|
});
|
|
}
|