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
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
We need to support the polymorphic response at the nested list (2nd layer response - from the data model). Clients should handle the different type of objects inside the lists as long as they have discriminator parameters.
We have a DataModel such as:
class PetResponse
{
public string message {get; set;}
// <-- We need an annotation support here for overridding the base type (Pet) and instead support discriminator parameter, with oneOf functionality.
public List<Pet>{get; set;}
}
@dralpus to support this feature we will need to start supporting custom annotations for request/response contracts properties as currently we use only the default <summary> tag to fetch the property description. I will need to think about the design as the work is not going to be trivial to support this.
We need to support the polymorphic response at the nested list (2nd layer response - from the data model). Clients should handle the different type of objects inside the lists as long as they have discriminator parameters.
We have a DataModel such as:
End result of the swagger document should be look like this:
Sample result: https://app.swaggerhub.com/apis/dralpus/test/1.0.0-oas3
The text was updated successfully, but these errors were encountered: