Forum Discussion

spymonsayz's avatar
spymonsayz
New Member
2 years ago

Swagger causing conflicts with other JS libraries - .Net Framework API

I have implemented Swagger (Swashbuckle) into a .Net Framework API Layer.  Much of the implementation is out-of-the-box.  No customization.

Inside the same project, we host a node UI application that interfaces with the APIs.

 

While Swagger and the Swagger UI are working without issue, it has somehow caused conflicts with the node UI application, causing many JS controls to simply stop working.  The node UI uses Kendo13, Angular1 & 6, lodash.chunk 4.2.0 among other things.

 

I believe the index and swagger-ui-min-js files as well as the folders under swagger/ui are created dynamically.  Is there a way to control the libraries used?

 

Also....when I commented out the registration of Swagger in the Global.asax file of the .Net Framework API, the node UI application still had issues working.  Are the packages loaded even though Swagger itself is not?

 

I am hoping I made sense with my question.

 

 

No RepliesBe the first to reply