Allow snapshot name with null

According to cinder api schema [0],
snapshot name is allow null and minLength 0.

[0]:https://github.com/openstack/cinder/blob/master/cinder/api/schemas/snapshots.py#L29

Change-Id: I0d9e07fb1249d3daaed95520a8c771c083f5d54b
This commit is contained in:
zhurong 2020-05-29 15:56:24 +08:00
parent 232744fcc2
commit 1f4bf49330
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ common_snapshot_schema = {
'status': {'type': 'string'},
'description': {'type': ['string', 'null']},
'created_at': parameter_types.date_time,
'name': {'type': 'string'},
'name': {'type': ['string', 'null']},
'volume_id': {'type': 'string', 'format': 'uuid'},
'metadata': metadata,
'id': {'type': 'string', 'format': 'uuid'},