Skip to content

Commit 847606a

Browse files
committed
added generator class to services metafile and tweak api doc template to handlebar format
1 parent 41aeb0f commit 847606a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/resources/META-INF/services/io.swagger.codegen.v3.CodegenConfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ io.swagger.codegen.v3.generators.kotlin.KotlinServerCodegen
2525
io.swagger.codegen.v3.generators.php.PhpClientCodegen
2626
io.swagger.codegen.v3.generators.python.PythonClientCodegen
2727
io.swagger.codegen.v3.generators.python.PythonFlaskConnexionCodegen
28+
io.swagger.codegen.v3.generators.r.RClientCodegen
2829
io.swagger.codegen.v3.generators.scala.ScalaClientCodegen
2930
io.swagger.codegen.v3.generators.scala.AkkaHttpServerCodegen
3031
io.swagger.codegen.v3.generators.swift.Swift3Codegen

src/main/resources/handlebars/R/api_doc.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ Method | HTTP request | Description
1717
{{{notes}}}{{/notes}}
1818

1919
### Required Parameters
20-
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
20+
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#@last}}
2121
Name | Type | Description | Notes
2222
------------- | ------------- | ------------- | -------------{{#authMethods}}
23-
**ctx** | **context.Context** | context containing the authentication | nil if no authentication{{/authMethods}}{{/-last}}{{/allParams}}{{#allParams}}{{#required}}
23+
**ctx** | **context.Context** | context containing the authentication | nil if no authentication{{/authMethods}}{{/@last}}{{/allParams}}{{#allParams}}{{#required}}
2424
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}{{/required}}{{/allParams}}{{#hasOptionalParams}}
2525
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
2626

2727
### Optional Parameters
2828
Optional parameters are passed through a map[string]interface{}.
29-
{{#allParams}}{{#-last}}
29+
{{#allParams}}{{#@last}}
3030
Name | Type | Description | Notes
31-
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}{{#allParams}}
31+
------------- | ------------- | ------------- | -------------{{/@last}}{{/allParams}}{{#allParams}}
3232
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}{{/allParams}}{{/hasOptionalParams}}
3333

3434
### Return type
@@ -37,7 +37,7 @@ Name | Type | Description | Notes
3737

3838
### Authorization
3939

40-
{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{{name}}}](../README.md#{{{name}}}){{^-last}}, {{/-last}}{{/authMethods}}
40+
{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{{name}}}](../README.md#{{{name}}}){{^@last}}, {{/@last}}{{/authMethods}}
4141

4242
### HTTP request headers
4343

0 commit comments

Comments
 (0)