Fix ListWorkflowRuns OpenAPI response model.#35026
Conversation
…t` like it is supposed to be.
|
Hold off for a bit, I just encountered another error when actually trying to deserialize this endpoint to |
|
It's odd, in the response both "has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"projects_mode": "all",
"has_releases": true,
"has_packages": true,
"has_actions": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"allow_fast_forward_only_merge": true,
"allow_rebase_update": true,
"allow_manual_merge": false,
"autodetect_manual_merge": false,
"default_delete_branch_after_merge": false,
"default_merge_style": "merge",
"default_allow_maintainer_edit": false,
"avatar_url": "",
"internal": false,
"mirror_interval": "",
"object_format_name": "sha1",
"mirror_updated": "0001-01-01T00:00:00Z",
"repo_transfer": null,
"topics": [],
"licenses": null |
|
Fixed the model to omit null (but not nullable) values and initialize the Licenses array in the response even if they are empty. |
|
Forgot that the original didn't have the pre-allocation. Your suggestion should be ideal. |
For performance-critical code, that While here I think we can keep (I just meant that in the convert function, we can't depend on the StringList's behavior) |
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: Fix ListWorkflowRuns OpenAPI response model. (go-gitea#35026) Partially refresh notifications list (go-gitea#35010)
Change the OpenAPI response of
ListWorkflowRunstoWorkflowRunsListlike it is supposed to be.