aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/api
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-16 09:42:55 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-16 09:42:55 -0700
commitb83347388d17dfd58c9f3d123d3d96d050ca6e9b (patch)
treeb07cfd936e1e405e88e5003fcf022e778161dd5c /python/fatcat_client/api
parent68e847aadc728d63057be5b8d547c851b02a0008 (diff)
downloadfatcat-b83347388d17dfd58c9f3d123d3d96d050ca6e9b.tar.gz
fatcat-b83347388d17dfd58c9f3d123d3d96d050ca6e9b.zip
ORCIDs can end in X character
Diffstat (limited to 'python/fatcat_client/api')
-rw-r--r--python/fatcat_client/api/default_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_client/api/default_api.py b/python/fatcat_client/api/default_api.py
index b7f23e25..acd33c88 100644
--- a/python/fatcat_client/api/default_api.py
+++ b/python/fatcat_client/api/default_api.py
@@ -3255,8 +3255,8 @@ class DefaultApi(object):
if ('orcid' in params and
len(params['orcid']) < 19):
raise ValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, length must be greater than or equal to `19`") # noqa: E501
- if 'orcid' in params and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{4}', params['orcid']): # noqa: E501
- raise ValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\\d{4}-\\d{4}-\\d{4}-\\d{4}/`") # noqa: E501
+ if 'orcid' in params and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]', params['orcid']): # noqa: E501
+ raise ValueError("Invalid value for parameter `orcid` when calling `lookup_creator`, must conform to the pattern `/\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]/`") # noqa: E501
collection_formats = {}
path_params = {}