Esempio n. 1
0
 static string GetExampleFromSchema(OpenApiMediaType content)
 {
     return(content.Schema != null?ContentParser.GetStringExampleFromContent(content.Schema.Example, new Dictionary <string, OpenApiExample>()) : null);
 }
Esempio n. 2
0
 static string GetRealExample(OpenApiMediaType content)
 {
     return(ContentParser.GetStringExampleFromContent(content.Example, content.Examples));
 }