Extensions: "permissions" Expect a dictionary instead of a list

We don't do anything with the content of the dictionary yet (the reason
why each permission is required. But Blender can talk again with the
extensions server.

This still requires changes on the validation and build and
server_generate commands. To be tackled separately.
This commit is contained in:
Dalai Felinto
2024-06-04 19:06:05 +02:00
parent e2458001e4
commit ffa363355d

View File

@@ -1303,7 +1303,7 @@ def pkg_manifest_validate_field_tagline(value: str, strict: bool) -> Optional[st
def pkg_manifest_validate_field_permissions(
value: List[Any],
value: Dict,
strict: bool,
) -> Optional[str]:
_ = strict
@@ -1446,7 +1446,7 @@ pkg_manifest_known_keys_and_types: Tuple[
("blender_version_max", str, pkg_manifest_validate_field_any_version_primitive_or_empty),
("website", str, pkg_manifest_validate_field_any_non_empty_string_stripped_no_control_chars),
("copyright", list, pkg_manifest_validate_field_any_non_empty_list_of_non_empty_strings),
("permissions", list, pkg_manifest_validate_field_permissions),
("permissions", dict, pkg_manifest_validate_field_permissions),
("tags", list, pkg_manifest_validate_field_any_non_empty_list_of_non_empty_strings),
("wheels", list, pkg_manifest_validate_field_wheels),
)