-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve remove operation id prefix (#886)
- Loading branch information
1 parent
babae9b
commit 0719839
Showing
9 changed files
with
327 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
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
108 changes: 108 additions & 0 deletions
108
...nt/integration-tests/remove-operationid-prefix/src/main/openapi/openapi-prefix-count.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,108 @@ | ||
--- | ||
openapi: 3.0.3 | ||
info: | ||
title: code-with-quarkus API | ||
version: 1.0.0-SNAPSHOT | ||
servers: | ||
- url: http://localhost:8080 | ||
description: Auto generated value | ||
- url: http://0.0.0.0:8080 | ||
description: Auto generated value | ||
paths: | ||
/users: | ||
get: | ||
tags: | ||
- User Resource | ||
description: Find All | ||
operationId: org.acme.UserResource.findAll | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/User" | ||
post: | ||
tags: | ||
- User Resource | ||
description: Add | ||
operationId: org.acme.UserResource.add | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
/users/{id}: | ||
get: | ||
tags: | ||
- User Resource | ||
description: Find | ||
operationId: org.acme.UserResource.find | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
put: | ||
tags: | ||
- User Resource | ||
description: Update | ||
operationId: org.acme.UserResource.update | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
responses: | ||
"204": | ||
description: No Content | ||
delete: | ||
tags: | ||
- User Resource | ||
description: Delete | ||
operationId: org.acme.UserResource.delete | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
responses: | ||
"204": | ||
description: No Content | ||
components: | ||
schemas: | ||
User: | ||
type: object | ||
properties: | ||
id: | ||
format: int32 | ||
type: integer | ||
name: | ||
type: string |
108 changes: 108 additions & 0 deletions
108
...ntegration-tests/remove-operationid-prefix/src/main/openapi/openapi-prefix-delimiter.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,108 @@ | ||
--- | ||
openapi: 3.0.3 | ||
info: | ||
title: code-with-quarkus API | ||
version: 1.0.0-SNAPSHOT | ||
servers: | ||
- url: http://localhost:8080 | ||
description: Auto generated value | ||
- url: http://0.0.0.0:8080 | ||
description: Auto generated value | ||
paths: | ||
/users: | ||
get: | ||
tags: | ||
- User Resource | ||
description: Find All | ||
operationId: UserResource.findAll | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/User" | ||
post: | ||
tags: | ||
- User Resource | ||
description: Add | ||
operationId: UserResource.add | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
/users/{id}: | ||
get: | ||
tags: | ||
- User Resource | ||
description: Find | ||
operationId: UserResource.find | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
put: | ||
tags: | ||
- User Resource | ||
description: Update | ||
operationId: UserResource.update | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/User" | ||
responses: | ||
"204": | ||
description: No Content | ||
delete: | ||
tags: | ||
- User Resource | ||
description: Delete | ||
operationId: UserResource.delete | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
format: int32 | ||
type: integer | ||
responses: | ||
"204": | ||
description: No Content | ||
components: | ||
schemas: | ||
User: | ||
type: object | ||
properties: | ||
id: | ||
format: int32 | ||
type: integer | ||
name: | ||
type: string |
8 changes: 8 additions & 0 deletions
8
client/integration-tests/remove-operationid-prefix/src/main/resources/application.properties
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
quarkus.rest-client.quarkus_simple_openapi_yaml.url=http://localhost:8080 | ||
|
||
quarkus.openapi-generator.codegen.spec.openapi_remove_operation_id_prefix_yaml.remove-operation-id-prefix=true | ||
|
||
quarkus.openapi-generator.codegen.spec.openapi_prefix_delimiter_yaml.remove-operation-id-prefix=true | ||
quarkus.openapi-generator.codegen.spec.openapi_prefix_delimiter_yaml.remove-operation-id-prefix-delimiter=. | ||
|
||
quarkus.openapi-generator.codegen.spec.openapi_prefix_count_yaml.remove-operation-id-prefix=true | ||
quarkus.openapi-generator.codegen.spec.openapi_prefix_count_yaml.remove-operation-id-prefix-delimiter=. | ||
quarkus.openapi-generator.codegen.spec.openapi_prefix_count_yaml.remove-operation-id-prefix-count=3 |
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