forked from loafle/openapi-generator-original
Merge branch 'throw-error-not-string' of https://github.com/mauricedb/swagger-codegen into mauricedb-throw-error-not-string
This commit is contained in:
commit
37bb66c436
@ -58,7 +58,7 @@
|
|||||||
<#allParams><#required>
|
<#allParams><#required>
|
||||||
// verify the required parameter '<paramName>' is set
|
// verify the required parameter '<paramName>' is set
|
||||||
if (<paramName> == undefined || <paramName> == null) {
|
if (<paramName> == undefined || <paramName> == null) {
|
||||||
throw "Missing the required parameter '<paramName>' when calling <operationId>";
|
throw new Error("Missing the required parameter '<paramName>' when calling <operationId>");
|
||||||
}
|
}
|
||||||
</required></allParams>
|
</required></allParams>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user