mirror of https://github.com/portainer/portainer
13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
|
import { array, object, SchemaOf, string } from 'yup';
|
||
|
|
||
|
import { Values } from './types';
|
||
|
|
||
|
export function validation(): SchemaOf<Values> {
|
||
|
return array(
|
||
|
object({
|
||
|
name: string().required('Name is required'),
|
||
|
value: string().default(''),
|
||
|
})
|
||
|
);
|
||
|
}
|