-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add new configuration flags: REMOVE_OPERATION_ID_PREFIX_DELIMITER and REMOVE_OPERATION_ID_PREFIX_COUNT Add the corresponding fields in the DefaultCodegen Sanitize the operationId according to the new fields Add delimiter to list of nonNameElementPattern Add unit test
- Loading branch information
Showing
4 changed files
with
157 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
modules/openapi-generator/src/test/resources/bugs/issue_9719.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: OpenAPI Petstore | ||
description: "sample to vet integer handling" | ||
license: | ||
name: Apache-2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0.html | ||
version: 1.0.0 | ||
servers: | ||
- url: http://petstore.swagger.io:80/v2 | ||
tags: [] | ||
paths: | ||
/dotDelimiter: | ||
get: | ||
summary: List all users | ||
operationId: petstore.api.users.get_all | ||
tags: | ||
- users | ||
responses: | ||
'200': | ||
description: A paged array of users | ||
headers: | ||
x-next: | ||
description: A link to the next page of responses | ||
schema: | ||
type: string | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
/underscoreDelimiter: | ||
get: | ||
summary: List all users | ||
operationId: petstore_api_users_getAll | ||
tags: | ||
- users | ||
responses: | ||
'200': | ||
description: A paged array of users | ||
headers: | ||
x-next: | ||
description: A link to the next page of responses | ||
schema: | ||
type: string | ||
content: | ||
application/json: | ||
schema: | ||
type: string |