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
"type": "object",
"properties": {
"joke": {
"modelReference": "http://www.test.com#Something.joke",
"type": "string",
"description": "This is to tell a joke",
"examples": [
"What did one hat say to the other?",
"You wait here. I’ll go on a head."
]
}
}
The generated property is missing the examples:
/// <summary>
/// This is to tell a joke
/// </summary>
[Newtonsoft.Json.JsonProperty("joke",
Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Joke { get; set; }
How do I enable this in the generated class?
I using Nswag.exe openapics2client command version v13.18.2.0.
I tried to embed the <example> in the description field, but it gets replaced with html code <example>
The text was updated successfully, but these errors were encountered:
I added example in my json schema:
The generated property is missing the examples:
How do I enable this in the generated class?
I using
Nswag.exe openapics2client
command version v13.18.2.0.I tried to embed the
<example>
in the description field, but it gets replaced with html code<example>
The text was updated successfully, but these errors were encountered: