forked from loafle/openapi-generator-original
[Ruby] add generator version to Ruby template (#5459)
* add generator version to ruby template * remove tab in java generator
This commit is contained in:
@@ -126,6 +126,8 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
}
|
||||
config.processOpts();
|
||||
config.preprocessSwagger(swagger);
|
||||
// TODO need to obtain version from a file instead of hardcoding it
|
||||
config.additionalProperties().put("generatorVersion", "2.2.3-SNAPSHOT");
|
||||
config.additionalProperties().put("generatedDate", DateTime.now().toString());
|
||||
config.additionalProperties().put("generatorClass", config.getClass().getName());
|
||||
config.additionalProperties().put("inputSpec", config.getInputSpec());
|
||||
|
||||
@@ -709,7 +709,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
||||
if(p.getExample() != null) {
|
||||
return escapeText(p.getExample().toString());
|
||||
} else {
|
||||
return super.toExampleValue(p);
|
||||
return super.toExampleValue(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user