Error creating bean - UnexpectedTypeException: Response is not a Swagger or OpenAPI type object Error in ZOWE API and Swagger.
search cancel

Error creating bean - UnexpectedTypeException: Response is not a Swagger or OpenAPI type object Error in ZOWE API and Swagger.

book

Article ID: 415612

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

The following error is showing in ZOWE:

Failed to fetch API documentation: No API Documentation was retrieved for the service bcmopsrestszsdev. Root cause: Error creating bean with name 'abstractApiDocService' defined in class path resource [org/zowe/apiml/apicatalog/swagger/api/ApiTransformationConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.zowe.apiml.apicatalog.swagger.api.AbstractApiDocService]: Factory method 'abstractApiDocService' threw exception; nested exception is javax.validation.UnexpectedTypeException: Response is not a Swagger or OpenAPI type object.

Resolution

A customer for OPS REST API reported that this condition was fixed when they updated the application.yml to add TLSv1.2 in addition to TLSv1.3