From a8abccaf072815c4a422d267d78b76cf0f6bd5f7 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 16 Apr 2023 13:09:11 +0200 Subject: [PATCH] dynamite: Fix warning about content strings --- packages/dynamite/lib/src/openapi_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 6ce96d5e..bdedd1ef 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -1388,7 +1388,7 @@ TypeResult resolveObject( }; if (isContentString) { - if (result is! TypeResultObject || result is! TypeResultList) { + if (result is! TypeResultObject && result is! TypeResultList) { print("The content string $identifier.$propertyName can't be decoded automatically."); }