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:
Jan Sandberg 2023-12-18 03:59:39 +01:00 committed by GitHub
parent 58345a9a80
commit efe2f8703d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {