1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 06:19:41 +02:00
portainer/app/react/docker/containers/CreateView/LabelsTab/validation.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
269 B
TypeScript
Raw Normal View History

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