You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/client/echo_api/r/R/header_api.R
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,10 +100,25 @@ HeaderApi <- R6::R6Class(
100
100
oauth_scopes<-NULL
101
101
is_oauth<-FALSE
102
102
103
+
if (is.null(`integer_header`)) {
104
+
stop("Invalid value for `integer_header` when calling HeaderApi$TestHeaderIntegerBooleanStringEnums, `integer_header` is not nullable")
105
+
}
103
106
107
+
if (is.null(`boolean_header`)) {
108
+
stop("Invalid value for `boolean_header` when calling HeaderApi$TestHeaderIntegerBooleanStringEnums, `boolean_header` is not nullable")
109
+
}
104
110
111
+
if (is.null(`string_header`)) {
112
+
stop("Invalid value for `string_header` when calling HeaderApi$TestHeaderIntegerBooleanStringEnums, `string_header` is not nullable")
113
+
}
105
114
115
+
if (is.null(`enum_nonref_string_header`)) {
116
+
stop("Invalid value for `enum_nonref_string_header` when calling HeaderApi$TestHeaderIntegerBooleanStringEnums, `enum_nonref_string_header` is not nullable")
117
+
}
106
118
119
+
if (is.null(`enum_ref_string_header`)) {
120
+
stop("Invalid value for `enum_ref_string_header` when calling HeaderApi$TestHeaderIntegerBooleanStringEnums, `enum_ref_string_header` is not nullable")
stop("Invalid value for `path_string` when calling PathApi$TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath, `path_string` is not nullable")
118
+
}
116
119
120
+
if (is.null(`path_integer`)) {
121
+
stop("Invalid value for `path_integer` when calling PathApi$TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath, `path_integer` is not nullable")
122
+
}
117
123
124
+
if (is.null(`enum_nonref_string_path`)) {
125
+
stop("Invalid value for `enum_nonref_string_path` when calling PathApi$TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath, `enum_nonref_string_path` is not nullable")
126
+
}
118
127
128
+
if (is.null(`enum_ref_string_path`)) {
129
+
stop("Invalid value for `enum_ref_string_path` when calling PathApi$TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath, `enum_ref_string_path` is not nullable")
rlang::abort(message="Invalid value for `reg_exp_test` when calling FakeApi$fake_regular_expression, `reg_exp_test` is not nullable",
590
+
.subclass="ApiException",
591
+
ApiException=ApiException$new(status=0,
592
+
reason="Invalid value for `reg_exp_test` when calling FakeApi$fake_regular_expression, `reg_exp_test` is not nullable"))
593
+
}
564
594
if (!is.null(`reg_exp_test`) &&!stringr::str_detect(`reg_exp_test`, "^[A-Za-z0-9_]{1,15}$")) {
565
595
rlang::abort(message="Invalid value for `reg_exp_test` when calling FakeApi$fake_regular_expression, must conform to the pattern ^[A-Za-z0-9_]{1,15}$.",
0 commit comments