mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 20:20:53 +00:00
Use modelNameMappings in ruby client (#17408)
The modelNameMappings were introduced with PRs #16209, #16234 and are now also used in the ruby client generator.
This commit is contained in:
parent
58345a9a80
commit
efe2f8703d
@ -410,6 +410,10 @@ public class RubyClientCodegen extends AbstractRubyCodegen {
|
||||
return schemaMapping.get(name);
|
||||
}
|
||||
|
||||
if (modelNameMapping.containsKey(name)) {
|
||||
return modelNameMapping.get(name);
|
||||
}
|
||||
|
||||
// memoization
|
||||
String origName = name;
|
||||
if (schemaKeyToModelNameCache.containsKey(origName)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user