Skip to content

Commit 5d1121d

Browse files
yashvardhannanavatiJAVGan
authored andcommitted
fix: validation for fbc_fragments_resolved
Signed-off-by: Yashvardhan Nanavati <[email protected]>
1 parent 6d1b24a commit 5d1121d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iib/web/api_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def patch_request(request_id: int) -> Tuple[flask.Response, int]:
681681
for v in value.values():
682682
if not isinstance(v, list) or any(not isinstance(s, str) for s in v):
683683
raise ValidationError(exc_msg)
684-
elif key == 'recursive_related_bundles':
684+
elif key == 'recursive_related_bundles' or key == 'fbc_fragments_resolved':
685685
if not isinstance(value, list):
686686
exc_msg = f'The value for "{key}" must be a list of non-empty strings'
687687
raise ValidationError(exc_msg)

0 commit comments

Comments
 (0)