Skip to content

fix typo - UpdateUser comment #8241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ paths:
parameters:
- name: "username"
in: "path"
description: "name that need to be deleted"
description: "name of the user that needs to be updated"
required: true
type: "string"
- in: "body"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ paths:
parameters:
- name: "username"
in: "path"
description: "name that need to be deleted"
description: "name of the user that needs to be updated"
required: true
type: "string"
- in: "body"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
2 changes: 1 addition & 1 deletion modules/openapi-generator-online/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"parameters": [
{
"name": "username",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string",
"paramType": "path"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
type: string
- in: body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"schema": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name of the user that needs to be updated
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class UserService {
/**
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted
* @param username name of the user that needs to be updated
* @param body Updated user object
*/
public updateUser(username: string, body: User, extraHttpRequestParams?: any): Observable<{}> {
Expand Down Expand Up @@ -522,7 +522,7 @@ export class UserService {
/**
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted
* @param username name of the user that needs to be updated
* @param body Updated user object
*/
public updateUserWithHttpInfo(username: string, body: User, extraHttpRequestParams?: any): Observable<Response> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion modules/openapi-generator/src/test/resources/petstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
{
"name": "username",
"in": "path",
"description": "name that need to be deleted",
"description": "name of the user that needs to be updated",
"required": true,
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/R/R/user_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
#' #################### UpdateUser ####################
#'
#' library(petstore)
#' var.username <- 'username_example' # character | name that need to be deleted
#' var.username <- 'username_example' # character | name of the user that needs to be updated
#' var.body <- User$new() # User | Updated user object
#'
#' #Updated user
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/R/docs/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ This can only be done by the logged in user.
```R
library(petstore)

var.username <- 'username_example' # character | name that need to be deleted
var.username <- 'username_example' # character | name of the user that needs to be updated
var.body <- User$new(123, "username_example", "firstName_example", "lastName_example", "email_example", "password_example", "phone_example", 123) # User | Updated user object

#Updated user
Expand All @@ -325,7 +325,7 @@ api.instance$UpdateUser(var.username, var.body)

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **character**| name that need to be deleted |
**username** | **character**| name of the user that needs to be updated |
**body** | [**User**](User.md)| Updated user object |

### Return type
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/R/tests/testthat/test_user_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test_that("UpdateUser", {
# base path: http://petstore.swagger.io/v2
# Updated user
# This can only be done by the logged in user.
# @param username character name that need to be deleted
# @param username character name of the user that needs to be updated
# @param body User Updated user object
# @return [Void]

Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/android/httpclient/docs/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ This can only be done by the logged in user.
//import org.openapitools.client.api.UserApi;

UserApi apiInstance = new UserApi();
String username = null; // String | name that need to be deleted
String username = null; // String | name of the user that needs to be updated
User user = new User(); // User | Updated user object
try {
apiInstance.updateUser(username, user);
Expand All @@ -326,7 +326,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | [default to null]
**username** | **String**| name of the user that needs to be updated | [default to null]
**user** | [**User**](User.md)| Updated user object |

### Return type
Expand Down
Loading