You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/docker/containers/CreateView/LabelsTab/validation.ts

13 lines
269 B

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(''),
})
);
}