Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 739c77e

Browse files
committed
Sample regen _request_body changed to suffix
1 parent 0bfb5c0 commit 739c77e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4587,7 +4587,7 @@ private void finishUpdatingParameter(CodegenParameter codegenParameter, Paramete
45874587
* Convert OAS Parameter object to Codegen Parameter object
45884588
*
45894589
* @param parameter OAS parameter object
4590-
* @param imports set of imports for library/package/module
4590+
* @param sourceJsonPath the json path to the parameter
45914591
* @return Codegen Parameter object
45924592
*/
45934593
public CodegenParameter fromParameter(Parameter parameter, String sourceJsonPath) {
@@ -6528,7 +6528,7 @@ protected LinkedHashMap<String, CodegenMediaType> getContent(Content content, Se
65286528
}
65296529

65306530
private String toRequestBodyFileName(String name) {
6531-
return "request_body_" + toModuleFilename(name);
6531+
return toModuleFilename(name) + "_request_body";
65326532
}
65336533

65346534
private String toRefModule(String ref, String expectedComponentType) {

modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,7 @@ public String toRefClass(String ref, String sourceJsonPath) {
28132813
}
28142814

28152815
public String requestBodyFilename(String componentName) {
2816-
return "request_body_" + toModuleFilename(componentName) + ".py";
2816+
return toModuleFilename(componentName) + "_request_body.py";
28172817
}
28182818

28192819
@Override

samples/openapi3/client/petstore/python/.openapi-generator/FILES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ petstore_api/apis/tags/store_api.py
147147
petstore_api/apis/tags/user_api.py
148148
petstore_api/components/__init__.py
149149
petstore_api/components/request_bodies/__init__.py
150-
petstore_api/components/request_bodies/request_body_client.py
151-
petstore_api/components/request_bodies/request_body_pet.py
152-
petstore_api/components/request_bodies/request_body_user_array.py
150+
petstore_api/components/request_bodies/client_request_body.py
151+
petstore_api/components/request_bodies/pet_request_body.py
152+
petstore_api/components/request_bodies/user_array_request_body.py
153153
petstore_api/components/schema/__init__.py
154154
petstore_api/components/schema/abstract_step_message.py
155155
petstore_api/components/schema/abstract_step_message.pyi

0 commit comments

Comments
 (0)