Skip to content
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

OpenAPI attributes are not getting picked up if they are in a referenced class library project #298

Closed
PanosKousidis opened this issue Oct 26, 2021 · 6 comments · Fixed by #301
Labels
bug Something isn't working resolved Request has been resolved v1.1.0

Comments

@PanosKousidis
Copy link
Contributor

PanosKousidis commented Oct 26, 2021

I have a dotnet-isolated (.NET5) azure function that references another project (class library .NET5) that has a function defined in it. The function is getting deployed fine, but the swagger page does not show it, even though it has the necessary attributes from the Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes namespace.

Using v0.9.0

Sample Repo to demonstrate the issue : https://github.com/PanosKousidis/AzureFunctions.OpenAPI.Issue298

@abishen
Copy link

abishen commented Oct 26, 2021

I am getting same issue

@justinyoo
Copy link
Contributor

@PanosKousidis Thanks for the issue! Do you have any log message or error message to share?

@abishen
Copy link

abishen commented Oct 27, 2021

really diffcult get the error I have also tried look into the log files. I have tried to deploy it on MS build working fine but there is issue with .net core

@justinyoo
Copy link
Contributor

Can you confirm whether this trick works or not on your end?

@JindalAman1610
Copy link

Can you confirm whether this trick works or not on your end?

Facing the same issue raised here. The trick mentioned didn't solve it for me.

PanosKousidis added a commit to PanosKousidis/azure-functions-openapi-extension that referenced this issue Nov 1, 2021
@PanosKousidis
Copy link
Contributor Author

I had a look at the code and created PR #301 , please review.

PanosKousidis added a commit to PanosKousidis/azure-functions-openapi-extension that referenced this issue Nov 1, 2021
PanosKousidis added a commit to PanosKousidis/AzureFunctions.OpenAPI.Issue298 that referenced this issue Nov 2, 2021
PanosKousidis added a commit to PanosKousidis/azure-functions-openapi-extension that referenced this issue Nov 7, 2021
PanosKousidis added a commit to PanosKousidis/azure-functions-openapi-extension that referenced this issue Nov 8, 2021
justinyoo pushed a commit that referenced this issue Feb 9, 2022
@justinyoo justinyoo added bug Something isn't working resolved Request has been resolved v1.1.0 and removed triage labels Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Request has been resolved v1.1.0
Projects
None yet
4 participants