Skip to content

Commit 39f3be2

Browse files
committed
Use modelNameMappings in ruby client
The modelNameMappings were introduced with PRs OpenAPITools#16209, OpenAPITools#16234 and are now also used in the ruby client generator.
1 parent 809d715 commit 39f3be2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ public String toModelName(final String name) {
410410
return schemaMapping.get(name);
411411
}
412412

413+
if (modelNameMapping.containsKey(name)) {
414+
return modelNameMapping.get(name);
415+
}
416+
413417
// memoization
414418
String origName = name;
415419
if (schemaKeyToModelNameCache.containsKey(origName)) {

0 commit comments

Comments
 (0)