Skip to content

This is an example to help Progress Telerik diagnose why the report designer is not compatible with Swashbuckles' implementation of swagger.

License

Notifications You must be signed in to change notification settings

CTGControls/Telerik-Reporting-Swashbuckle-Swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telerik Reporting Swashbuckle Swagger

This is an example to help Progress Telerik diagnose why the report designer is not compatible with Swashbuckles' implementation of swagger.

⚠️ Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1] An unhandled exception has occurred while executing the request. System.NotSupportedException: Conflicting method/path combination "GET api/ReportDesignerControllerBase"for actions - Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetDesignerResource (Telerik.WebReportDesigner.Services),Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetResource (Telerik.WebReportDesigner.Services). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable1 apiDescriptions, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable1 apiDescriptions, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

To generate the error you must enable to designer the be added to swagger. Open API => StartupExtensions => SwaggerGenExtension

Change line 74 from

if (action.Controller.ControllerName.Contains("Designer")) 

No Error

to

if (action.Controller.ControllerName.Contains("xDesigner")) 

Error

License

This work is dual-licensed under Apache 2.0, MIT and GPL 2.0 (or any later version). You can choose between one of them if you use this work.

SPDX-License-Identifier: Apache-2.0, MIT, OR GPL-2.0-or-later

About

This is an example to help Progress Telerik diagnose why the report designer is not compatible with Swashbuckles' implementation of swagger.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published