kdivelbiss
4 years agoNew Contributor
Error Creating Functional Test
Trying to set up first functional test using the swagger.json file. Receiving the error "attribute components.schemas.Schema name EagleSvc.API.Utilities.ExceptionHandling.ApiResponse+ApiResponseContent doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$"
Using open api: "3.0.1" and ReadyAPI 3.7.0.
Here is an excerpt from the json file:
"responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EagleSvc.API.Utilities.ExceptionHandling.ApiResponse+ApiResponseContent" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EagleSvc.API.Utilities.ExceptionHandling.ApiResponse+ApiResponseContent" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EagleSvc.API.Utilities.ExceptionHandling.ApiResponse+ApiResponseContent" } } } }
This is the attribute applied to the action showing the custom return type:
[ProducesResponseType(typeof(ApiResponse.ApiResponseContent), StatusCodes.Status200OK)]
Is this not supported by ReadyAPI?
Thanks.