forked from loafle/openapi-generator-original
[Ruby] Add auto-generated rubocop config file (#7637)
* add rubocop to ruby api client * add new files * fix ruby generator test case
This commit is contained in:
@@ -55,7 +55,7 @@ public class RubyClientCodegenTest {
|
||||
if (file.getName().equals("default_api.rb")) {
|
||||
apiFileGenerated = true;
|
||||
// Ruby client should set the path unescaped in the api file
|
||||
assertTrue(FileUtils.readFileToString(file, StandardCharsets.UTF_8).contains("local_var_path = \"/foo=bar\""));
|
||||
assertTrue(FileUtils.readFileToString(file, StandardCharsets.UTF_8).contains("local_var_path = '/foo=bar'"));
|
||||
}
|
||||
}
|
||||
if (!apiFileGenerated) {
|
||||
|
||||
@@ -501,7 +501,7 @@ paths:
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
description: 'The name that needs to be fetched. Use user1 for testing. '
|
||||
description: 'The name that needs to be fetched. Use user1 for testing.'
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
|
||||
@@ -501,7 +501,7 @@ paths:
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
description: 'The name that needs to be fetched. Use user1 for testing. '
|
||||
description: 'The name that needs to be fetched. Use user1 for testing.'
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user