Allow null avatars from Gitlab

Not all gitlab repositories have defined owners, meaning we cannot always get an avatar_url for the namespace

Fixes 241774339/
This commit is contained in:
Joseph Schorr 2017-04-04 13:41:38 -04:00
parent 1bfca871ec
commit eae151ff96
3 changed files with 7 additions and 6 deletions

View file

@ -21,7 +21,7 @@ NAMESPACES_SCHEMA = {
'description': 'Score of the relevance of the namespace',
},
'avatar_url': {
'type': 'string',
'type': ['string', 'null'],
'description': 'URL of the avatar for this namespace',
},
'url': {