make swagger-validate warnings #5861

Open
opened 2025-11-02 06:38:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @silverwind on GitHub (Aug 17, 2020).

Should eventually fix these:

WARNING: response "#/responses/StopWatch" is not used anywhere
WARNING: response "#/responses/Reference" is not used anywhere
WARNING: response "#/responses/parameterBodies" is not used anywhere
WARNING: response "#/responses/StringSlice" is not used anywhere
WARNING: response "#/responses/redirect" is not used anywhere
WARNING: response "#/responses/Tag" is not used anywhere
WARNING: response "#/responses/PullReviewComment" is not used anywhere
Originally created by @silverwind on GitHub (Aug 17, 2020). Should eventually fix these: ``` WARNING: response "#/responses/StopWatch" is not used anywhere WARNING: response "#/responses/Reference" is not used anywhere WARNING: response "#/responses/parameterBodies" is not used anywhere WARNING: response "#/responses/StringSlice" is not used anywhere WARNING: response "#/responses/redirect" is not used anywhere WARNING: response "#/responses/Tag" is not used anywhere WARNING: response "#/responses/PullReviewComment" is not used anywhere ```
GiteaMirror added the issue/confirmedmodifies/api labels 2025-11-02 06:38:42 -06:00
Author
Owner

@stale[bot] commented on GitHub (Oct 18, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Oct 18, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2022):

There are more and more warnings now.

The swagger spec at "./templates/swagger/v1_json.tmpl" showed up some valid but possibly unwanted constructs.
2022/04/29 21:14:57 See warnings below:
2022/04/29 21:14:57 - WARNING: in operation "repoTransfer", example value in response 202 does not validate its schema
2022/04/29 21:14:57 - WARNING: 202.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "createOrgRepo", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "adminCreateRepo", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "createFork", example value in response 202 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "generateRepo", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoMigrate", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "createOrgRepoDeprecated", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullReviewRequests", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.items.example.team.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoDismissPullReview", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.team.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullRequest", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "createCurrentUserRepo", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoCreateKey", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoSubmitPullReview", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "rejectRepoTransfer", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullReview", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoUnDismissPullReview", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "acceptRepoTransfer", example value in response 202 does not validate its schema
2022/04/29 21:14:57 - WARNING: example value for body in body does not validate its schema
2022/04/29 21:14:57 - WARNING: body.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "orgCreateTeam", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "userCurrentListSubscriptions", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "orgListTeamRepos", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "listPackages", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "userCurrentListStarred", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "orgListTeams", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "userListTeams", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "userListSubscriptions", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "userListRepos", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "notifyGetList", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "listForks", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoListKeys", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "notifyGetRepoList", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "issueGetCommentsAndTimeline", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.assignee_team.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "getPackage", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoGetPullReview", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoGetByID", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "orgListRepos", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoGetCombinedStatusByRef", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "userCurrentListRepos", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoGet", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "userListStarred", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "orgGetTeam", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoListPullRequests", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoGetPullRequest", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "notifyGetThread", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoGetKey", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoListTeams", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "teamSearch", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.data.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoSearch", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.data.items.example.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoCheckTeam", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoListPullReviews", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: 200.items.example.team.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "orgEditTeam", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "repoEditPullRequest", example value in response 201 does not validate its schema
2022/04/29 21:14:57 - WARNING: 201.head.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "notifyReadThread", example value in response 205 does not validate its schema
2022/04/29 21:14:57 - WARNING: 205.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "repoEdit", example value in response 200 does not validate its schema
2022/04/29 21:14:57 - WARNING: in operation "notifyReadList", example value in response 205 does not validate its schema
2022/04/29 21:14:57 - WARNING: 205.items.example.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: in operation "notifyReadRepoList", example value in response 205 does not validate its schema
2022/04/29 21:14:57 - WARNING: definitions.CreateTeamOption.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: definitions.Team.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: definitions.EditTeamOption.units_map.example in body must be of type object: "string"
2022/04/29 21:14:57 - WARNING: response "#/responses/PullReviewComment" is not used anywhere
2022/04/29 21:14:57 - WARNING: response "#/responses/Reference" is not used anywhere
2022/04/29 21:14:57 - WARNING: response "#/responses/redirect" is not used anywhere
2022/04/29 21:14:57 - WARNING: response "#/responses/parameterBodies" is not used anywhere
2022/04/29 21:14:57 - WARNING: response "#/responses/StopWatch" is not used anywhere
2022/04/29 21:14:57 - WARNING: definition "#/definitions/MigrateRepoForm" is not used anywhere
@wxiaoguang commented on GitHub (Apr 29, 2022): There are more and more warnings now. ``` The swagger spec at "./templates/swagger/v1_json.tmpl" showed up some valid but possibly unwanted constructs. 2022/04/29 21:14:57 See warnings below: 2022/04/29 21:14:57 - WARNING: in operation "repoTransfer", example value in response 202 does not validate its schema 2022/04/29 21:14:57 - WARNING: 202.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "createOrgRepo", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "adminCreateRepo", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "createFork", example value in response 202 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "generateRepo", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoMigrate", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "createOrgRepoDeprecated", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullReviewRequests", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.items.example.team.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoDismissPullReview", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.team.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullRequest", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "createCurrentUserRepo", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoCreateKey", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoSubmitPullReview", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "rejectRepoTransfer", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoCreatePullReview", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoUnDismissPullReview", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "acceptRepoTransfer", example value in response 202 does not validate its schema 2022/04/29 21:14:57 - WARNING: example value for body in body does not validate its schema 2022/04/29 21:14:57 - WARNING: body.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "orgCreateTeam", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "userCurrentListSubscriptions", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "orgListTeamRepos", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "listPackages", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "userCurrentListStarred", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "orgListTeams", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "userListTeams", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "userListSubscriptions", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "userListRepos", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "notifyGetList", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "listForks", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoListKeys", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "notifyGetRepoList", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "issueGetCommentsAndTimeline", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.assignee_team.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "getPackage", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoGetPullReview", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoGetByID", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "orgListRepos", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoGetCombinedStatusByRef", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "userCurrentListRepos", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoGet", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "userListStarred", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "orgGetTeam", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoListPullRequests", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoGetPullRequest", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.base.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "notifyGetThread", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoGetKey", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoListTeams", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "teamSearch", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.data.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoSearch", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.data.items.example.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoCheckTeam", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoListPullReviews", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: 200.items.example.team.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "orgEditTeam", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "repoEditPullRequest", example value in response 201 does not validate its schema 2022/04/29 21:14:57 - WARNING: 201.head.repo.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "notifyReadThread", example value in response 205 does not validate its schema 2022/04/29 21:14:57 - WARNING: 205.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "repoEdit", example value in response 200 does not validate its schema 2022/04/29 21:14:57 - WARNING: in operation "notifyReadList", example value in response 205 does not validate its schema 2022/04/29 21:14:57 - WARNING: 205.items.example.repository.repo_transfer.teams.items.example.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: in operation "notifyReadRepoList", example value in response 205 does not validate its schema 2022/04/29 21:14:57 - WARNING: definitions.CreateTeamOption.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: definitions.Team.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: definitions.EditTeamOption.units_map.example in body must be of type object: "string" 2022/04/29 21:14:57 - WARNING: response "#/responses/PullReviewComment" is not used anywhere 2022/04/29 21:14:57 - WARNING: response "#/responses/Reference" is not used anywhere 2022/04/29 21:14:57 - WARNING: response "#/responses/redirect" is not used anywhere 2022/04/29 21:14:57 - WARNING: response "#/responses/parameterBodies" is not used anywhere 2022/04/29 21:14:57 - WARNING: response "#/responses/StopWatch" is not used anywhere 2022/04/29 21:14:57 - WARNING: definition "#/definitions/MigrateRepoForm" is not used anywhere ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5861