mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
[Ruby] add generator version to Ruby template (#5459)
* add generator version to ruby template * remove tab in java generator
This commit is contained in:
parent
ee5c1b203b
commit
1277db61bd
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,3 +9,4 @@
|
||||
{{#version}}OpenAPI spec version: {{version}}{{/version}}
|
||||
{{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: {{{generatorVersion}}}
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
|
||||
=end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user