JamesRandall / FunctionMonkey

Write more elegant Azure Functions with less boilerplate, more consistency, and support for REST APIs. Docs can be found at https://functionmonkey.azurefromthetrenches.com
MIT License
293 stars 49 forks source link

Swagger-UI bundler has an extra "openapi" in it #109

Closed mdg215199 closed 4 years ago

mdg215199 commented 4 years ago

While trying to run the examples and documentation, everything works other when trying to bring up swagger, you get an error saying failed to load resource, and is searching for it in: http://localhost:7071/openapi/openapi/swagger-ui-standalone-preset.js

That said, the ui files exist in the same location where the other expected route locations, which was at http://localhost:7071/openapi/openapi/swagger-ui-standalone-preset.js

Potential commit blame is bb76fe7a (attempted to validate this, but was unable to troubleshoot locally as keep getting errors while trying to run using the functionmonkey.compiler when referencing it directly). That said, the specified commit is in file OpenApiCompiler.cs with differences: image

mdg215199 commented 4 years ago

Actually, I just deleted VS, azure toolkits, etc. After reinstalling, it seems to be running fine. So please, disregard