forked from loafle/openapi-generator-original
[Java Play Framework] Fix a small error of using paramName instead of baseName (#6395)
* Fix a small error of using paramName instead of baseName * Add sample generation
This commit is contained in:
committed by
wing328
parent
9fb8e637fa
commit
d80c0f5546
@@ -78,7 +78,7 @@ public class {{classname}}Controller extends Controller {
|
||||
}
|
||||
{{/collectionFormat}}
|
||||
{{^collectionFormat}}
|
||||
String value{{paramName}} = request().getQueryString("{{paramName}}");
|
||||
String value{{paramName}} = request().getQueryString("{{baseName}}");
|
||||
{{{dataType}}} {{paramName}};
|
||||
{{^required}}
|
||||
if (value{{paramName}} != null) {
|
||||
|
||||
Reference in New Issue
Block a user