Merge branch '14013-upload-collection-files-using-webdav' into 14014-create-collectio...
[arvados.git] / src / validators / validators.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { require } from './require';
6 import { maxLength } from './max-length';
7
8 export const TAG_KEY_VALIDATION = [require, maxLength(255)];
9 export const TAG_VALUE_VALIDATION = [require, maxLength(255)];
10
11 export const PROJECT_NAME_VALIDATION = [require, maxLength(255)];
12 export const PROJECT_DESCRIPTION_VALIDATION = [maxLength(255)];
13
14 export const COLLECTION_NAME_VALIDATION = [require, maxLength(255)];
15 export const COLLECTION_DESCRIPTION_VALIDATION = [maxLength(255)];
16 export const COLLECTION_PROJECT_VALIDATION = [require];