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