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
Run sample project Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc
Open http://localhost:7071/api/swagger/ui in browser
Expected behavior
Swagger should display with MyDerivedClass.Data of type MyData property visible on MyDerivedClass
Environment (please complete the following information, if applicable):
OS: Windows
Browser: Edge
Version: 1.5.1
Additional context
The problem occurs in ObjectTypeVisitor where it detects Data property on both derived and base class. Using JsonIgnore on base class resolves issue but that creates issues when using MyBase directly in other areas. Common use case for this scenario is deriving a base class into a generic replacing the Data property.
The text was updated successfully, but these errors were encountered:
Describe the issue
When a derived class hides an inherited member of its base, "An item with the same key has already been added" is encountered.
To Reproduce
Steps to reproduce the behavior:
hide-inherited-repro
Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc
http://localhost:7071/api/swagger/ui
in browserExpected behavior
Swagger should display with
MyDerivedClass.Data
of typeMyData
property visible onMyDerivedClass
Environment (please complete the following information, if applicable):
Additional context
The problem occurs in ObjectTypeVisitor where it detects
Data
property on both derived and base class. UsingJsonIgnore
on base class resolves issue but that creates issues when using MyBase directly in other areas. Common use case for this scenario is deriving a base class into a generic replacing theData
property.The text was updated successfully, but these errors were encountered: