Extensions: use a new structure for the server's JSON listing #29
@ -1138,7 +1138,7 @@ def repo_pkginfo_from_local(*, local_dir: str) -> Optional[Dict[str, Any]]:
|
||||
|
||||
def pkg_repo_dat_from_json(json_data: Dict[str, Any]) -> PkgRepoData:
|
||||
result_new = PkgRepoData(
|
||||
version=json_data.get("version", "1"),
|
||||
version=json_data.get("version", "v1"),
|
||||
ideasman42 marked this conversation as resolved
Outdated
|
||||
blocklist=json_data.get("blocklist", []),
|
||||
data=json_data.get("data", []),
|
||||
)
|
||||
|
Reference in New Issue
Block a user
a minor concern, but let's finalize this before publishing the doc
in
"v1"
for the version stringI don't mind changing this to
"1"
, but having a prefix makes it impossible to mistake the string for a number, and it also subjectively looks nicer in the explicitly versioned urls, such as https://extensions.blender.org/api/v1/extensions/what do you think?
That seems fine, I don't have such a strong opinion on this.