I am trying to insert my own values within my Swagger/OpenApi, currently in the Model Example Value I have the following values:
The desired situation is as shown below :
I've looked into it and tried multiple methods to achive this, for example I tried adding XMLComments like this:
However this does not work. Then I tried to use the MapType function which provides this functionality, I've done this with the following code:
c.MapType<Student>(() => new Schema()
{
example = new Student()
{
StudentName = "John Doe",
Age = 28
}
});
However, when I try it this way, I get the following result:

Any way to fix this ?


