Browse Source

spec_templates: Skip unsupported types

pull/218/head
jld3103 2 years ago
parent
commit
2e7c569e2a
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/spec_templates/lib/method_parameter.dart

4
packages/spec_templates/lib/method_parameter.dart

@ -75,6 +75,10 @@ class MethodParameter {
if (type == 'array') {
return 'array';
}
if (type == 'Chain') {
// Unsupported
return null;
}
throw Exception(
'Could not infer OpenAPI type from type "$type" for parameter "$name" of method "$methodName" in controller "$controllerName"',

Loading…
Cancel
Save