-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated swagger works locally, but is empty when deployed in Azure #359
Labels
investigating
Need time to investigating
Comments
From the FAQ: #306 |
@SamVanhoutte Thanks for the issue! Do you happen to have a sharable GitHub repository that I can reproduce the same error on my end? |
Hello @justinyoo So, I did the following steps:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
I leverage the
OpenApiOperation
attribute, and the related attributes, to describe severalHttpTrigger
functions in my netcoreapp3.1 Azure Functions project.It works successfully, when I navigate to my local swagger endpoint: 'http://localhost:7071/api/swagger/ui', but when I have deployed it (through Github Actions), the generated Swagger on the endpoint 'https://mysite-tst.azurewebsites.net/api/swagger.json' is empty and does not contain operations.
The UI page indicates: No operations defined in spec!
To Reproduce
Steps to reproduce the behavior:
OpenApiOperation
,OpenApiSecurity
,OpenApiResponseWithBody
... to functions that contain aHttpTrigger
binding.Expected behavior
Swagger file should be the same , regardless of hosting environment
The text was updated successfully, but these errors were encountered: