You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line ~110 ish, there is a line that reads var instance = acceptor as OpenApiSchemaAcceptor;. When testing with a custom
IOpenApiSchemaAcceptor, this was not processing, its because we cast to the concrete implementation type instead of the interface type. This stumped us recently, debugging attribute errors with duplicate keys.
Expected behavior
I think this should be var instance = acceptor as IOpenApiSchemaAcceptor
Screenshots
If applicable, add screenshots to help explain your issue.
The text was updated successfully, but these errors were encountered:
Describe the issue
azure-functions-openapi-extension/src/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core/Visitors
/ObjectTypeVisitor.cs
Line ~110 ish, there is a line that reads var instance = acceptor as OpenApiSchemaAcceptor;. When testing with a custom
IOpenApiSchemaAcceptor, this was not processing, its because we cast to the concrete implementation type instead of the interface type. This stumped us recently, debugging attribute errors with duplicate keys.
Expected behavior
I think this should be var instance = acceptor as IOpenApiSchemaAcceptor
Screenshots
If applicable, add screenshots to help explain your issue.
The text was updated successfully, but these errors were encountered: