Skip to content

in Swagger UI repo.projects is missing in model of /orgs/{org}/teams #14875

@netcicd

Description

@netcicd

It looks like the projects toggle in https://try.gitea.io/api/swagger#/organization/orgCreateTeam is missing (bold in the list below).

Adding it manually in the call does work properly though.

tooling_team_write_payload='{
"can_create_org_repo": true,
"description": "The tooling team - can write",
"includes_all_repositories": false,
"name": "gitea-tooling-write",
"permission": "write",
"units": [
"repo.code",
"repo.issues",
"repo.ext_issues",
"repo.wiki",
"repo.pulls",
"repo.releases",
"repo.projects",
"repo.ext_wiki"
]
}'
tooling_team_write_data=curl -s --user $user:$pwd -X POST "http://gitea:3000/api/v1/orgs/infraautomator/teams" -H "accept: application/json" -H "Content-Type: application/json" -d "${tooling_team_write_payload}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions