mirror of https://github.com/portainer/portainer
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
|
import { bool, number, object, SchemaOf, string } from 'yup';
|
||
|
|
||
|
import { Values } from './types';
|
||
|
|
||
|
export function validation(): SchemaOf<Values> {
|
||
|
return object({
|
||
|
image: string().required('Image is required'),
|
||
|
registryId: number().default(0),
|
||
|
useRegistry: bool().default(false),
|
||
|
});
|
||
|
}
|