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."); }