From 3e44ef77fa14a268701e5bd13b76ddd60ee53ba7 Mon Sep 17 00:00:00 2001 From: bpatel Date: Tue, 20 Apr 2021 12:49:32 -0700 Subject: [PATCH] validate check for search length name --- bin/validate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/validate.py b/bin/validate.py index d0da8ab741..ed97c5196c 100644 --- a/bin/validate.py +++ b/bin/validate.py @@ -118,6 +118,9 @@ def validate_standard_fields(object, uuids): else: uuids.append(object['id']) + if (object['type']) == 'batch' and len(object['name']) > 75: + errors.append('ERROR: Search name is longer than 75 characters: %s' % (object['name'])) + # if object['name'].endswith(" "): # errors.append( # "ERROR: name has trailing spaces: '%s'" %