Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cfbs/cfbs_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ def get_provides(self, added_by: Optional[str]):
"missing required key 'provides' in module definition: %s"
% pretty(self._data)
)
if not isinstance(self._data["provides"], dict):
raise CFBSValidationError(
"'provides' must be a JSON object (dict), not a list or other type in module definition: %s"
% pretty(self._data)
)
for k, v in self._data["provides"].items():
module = _construct_provided_module(
k, v, self.url, self.url_commit, self.url_branch, added_by
Expand Down
Loading