"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/common/validation/parameter_types.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (latest release).

parameter_types.py  (keystone-17.0.0):parameter_types.py  (keystone-18.0.0)
skipping to change at line 29 skipping to change at line 29
# NOTE(lbragstad): Be mindful of this pattern as it might require changes # NOTE(lbragstad): Be mindful of this pattern as it might require changes
# once this is used on user names, LDAP-based user names specifically since # once this is used on user names, LDAP-based user names specifically since
# commas aren't allowed in the following pattern. Here we are only going to # commas aren't allowed in the following pattern. Here we are only going to
# check the length of the name and ensure that it's a string. Right now we are # check the length of the name and ensure that it's a string. Right now we are
# not going to validate on a naming pattern for issues with # not going to validate on a naming pattern for issues with
# internationalization. # internationalization.
name = { name = {
'type': 'string', 'type': 'string',
'minLength': 1, 'minLength': 1,
'maxLength': 255, 'maxLength': 255,
'pattern': '[\S]+' 'pattern': r'[\S]+'
} }
external_id_string = { external_id_string = {
'type': 'string', 'type': 'string',
'minLength': 1, 'minLength': 1,
'maxLength': 64 'maxLength': 64
} }
id_string = { id_string = {
'type': 'string', 'type': 'string',
'minLength': 1, 'minLength': 1,
'maxLength': 64, 'maxLength': 64,
# TODO(lbragstad): Find a way to make this configurable such that the end # TODO(lbragstad): Find a way to make this configurable such that the end
# user chooses how much control they want over id_strings with a regex # user chooses how much control they want over id_strings with a regex
'pattern': '^[a-zA-Z0-9-]+$' 'pattern': r'^[a-zA-Z0-9-]+$'
} }
mapping_id_string = { mapping_id_string = {
'type': 'string', 'type': 'string',
'minLength': 1, 'minLength': 1,
'maxLength': 64, 'maxLength': 64,
'pattern': '^[a-zA-Z0-9-_]+$' 'pattern': '^[a-zA-Z0-9-_]+$'
} }
description = { description = {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)