mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* fix(container): show placeholder for image field EE-6287 * fix(container): correct query params for search button field EE-6287 * fix(container): use btoa to encode registry credential EE-6287 * fix(container): allow creating non-existing option EE-6287 * fix(ui/forms): typeahead component * fix(container): select the default registry EE-6287 * fix(container): always enable deploy button when always pull is off EE-6287 * fix(container): reset command fields outside current event to avoid validation on broken values EE-6287 * fix(container): query registry with endpoint ID param EE-6287 --------- Co-authored-by: Chaim Lev-Ari <chaim.levi-ari@portainer.io>
11 lines
301 B
TypeScript
11 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),
|
|
});
|
|
}
|