mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	swagger: add 'required: true' for params in URL (#4097)
* 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>
This commit is contained in:
		
							
								
								
									
										6
									
								
								public/swagger.v1.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								public/swagger.v1.json
									
									
									
									
										vendored
									
									
								
							@@ -5005,7 +5005,8 @@
 | 
				
			|||||||
            "type": "string",
 | 
					            "type": "string",
 | 
				
			||||||
            "description": "username of user",
 | 
					            "description": "username of user",
 | 
				
			||||||
            "name": "username",
 | 
					            "name": "username",
 | 
				
			||||||
            "in": "path"
 | 
					            "in": "path",
 | 
				
			||||||
 | 
					            "required": true
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        "responses": {
 | 
					        "responses": {
 | 
				
			||||||
@@ -5279,7 +5280,8 @@
 | 
				
			|||||||
            "type": "string",
 | 
					            "type": "string",
 | 
				
			||||||
            "description": "username of the user",
 | 
					            "description": "username of the user",
 | 
				
			||||||
            "name": "username",
 | 
					            "name": "username",
 | 
				
			||||||
            "in": "path"
 | 
					            "in": "path",
 | 
				
			||||||
 | 
					            "required": true
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        "responses": {
 | 
					        "responses": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,6 +51,7 @@ func ListUserOrgs(ctx *context.APIContext) {
 | 
				
			|||||||
	//   in: path
 | 
						//   in: path
 | 
				
			||||||
	//   description: username of user
 | 
						//   description: username of user
 | 
				
			||||||
	//   type: string
 | 
						//   type: string
 | 
				
			||||||
 | 
						//   required: true
 | 
				
			||||||
	// responses:
 | 
						// responses:
 | 
				
			||||||
	//   "200":
 | 
						//   "200":
 | 
				
			||||||
	//     "$ref": "#/responses/OrganizationList"
 | 
						//     "$ref": "#/responses/OrganizationList"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,6 +43,7 @@ func GetWatchedRepos(ctx *context.APIContext) {
 | 
				
			|||||||
	//   type: string
 | 
						//   type: string
 | 
				
			||||||
	//   in: path
 | 
						//   in: path
 | 
				
			||||||
	//   description: username of the user
 | 
						//   description: username of the user
 | 
				
			||||||
 | 
						//   required: true
 | 
				
			||||||
	// responses:
 | 
						// responses:
 | 
				
			||||||
	//   "200":
 | 
						//   "200":
 | 
				
			||||||
	//     "$ref": "#/responses/RepositoryList"
 | 
						//     "$ref": "#/responses/RepositoryList"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user