[PR #4097] [MERGED] swagger: add 'required: true' for params in URL #17240

Closed
opened 2025-11-02 12:30:34 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4097
Author: @stevegt
Created: 6/1/2018
Status: Merged
Merged: 6/2/2018
Merged by: @lafriks

Base: masterHead: params-required


📝 Commits (2)

  • 5e79dd6 swagger: add 'required: true' for params in URL
  • c5c9804 Merge branch 'master' into params-required

📊 Changes

3 files changed (+6 additions, -2 deletions)

View changed files

📝 public/swagger.v1.json (+4 -2)
📝 routers/api/v1/org/org.go (+1 -0)
📝 routers/api/v1/user/watch.go (+1 -0)

📄 Description

Swagger validation needs 'required: true' for parameters that are in
the URL path.

Signed-off-by: Steve Traugott stevegt@t7a.org


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4097 **Author:** [@stevegt](https://github.com/stevegt) **Created:** 6/1/2018 **Status:** ✅ Merged **Merged:** 6/2/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `params-required` --- ### 📝 Commits (2) - [`5e79dd6`](https://github.com/go-gitea/gitea/commit/5e79dd637157ad5278099d8399927c2931811993) swagger: add 'required: true' for params in URL - [`c5c9804`](https://github.com/go-gitea/gitea/commit/c5c9804c5ccaa8bad4253ffc58d500ae6d163aa8) Merge branch 'master' into params-required ### 📊 Changes **3 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `public/swagger.v1.json` (+4 -2) 📝 `routers/api/v1/org/org.go` (+1 -0) 📝 `routers/api/v1/user/watch.go` (+1 -0) </details> ### 📄 Description * Partial fix for #4010 Swagger validation needs 'required: true' for parameters that are in the URL path. Signed-off-by: Steve Traugott <stevegt@t7a.org> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:30:34 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17240