Skip to content

Commit d1cd514

Browse files
committed
allow not-nullable parameters to be missing
1 parent 3cec95d commit d1cd514

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/resources/r/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
{{/requiredParams}}
208208
{{#allParams}}
209209
{{^isNullable}}
210-
if (is.null(`{{paramName}}`)) {
210+
if (!missing(`{{paramName}}`) && is.null(`{{paramName}}`)) {
211211
{{#useDefaultExceptionHandling}}
212212
stop("Invalid value for `{{paramName}}` when calling {{classname}}${{operationId}}, `{{paramName}}` is not nullable")
213213
{{/useDefaultExceptionHandling}}

0 commit comments

Comments
 (0)