I want to generate different example values for the same complex object, for eg:
public class RequestDto
{
// ...
public class EntityDto SomeEntity {get; set;}
public class EntityDto OtherEntity {get; set;}
// ...
}
public class EntityDto
{
// ...
/// <example>
/// TOM
/// </example>
public string Name {get; set; }
// ...
}
For the OtherEntity, I want the example value to show as "MARY" in the generated Open API spec say.
Anyone solved this before and can share some guidance ? Many thanks in advance.