From 2e7c569e2a15327151f250b0614d8299065f2848 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 22 Mar 2023 09:09:34 +0100 Subject: [PATCH] spec_templates: Skip unsupported types --- packages/spec_templates/lib/method_parameter.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/spec_templates/lib/method_parameter.dart b/packages/spec_templates/lib/method_parameter.dart index 75859975..1e3e1eae 100644 --- a/packages/spec_templates/lib/method_parameter.dart +++ b/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"',