示例#1
0
 /// <summary>
 /// Controls how the model is shown when the API is first rendered.
 /// (The user can always switch the rendering for a given model by clicking the 'Model' and 'Example Value' links.)
 /// </summary>
 /// <param name="options"></param>
 /// <param name="modelRendering"></param>
 public static void DefaultModelRendering(this SwaggerUIOptions options, ModelRendering modelRendering)
 {
     options.ConfigObject["defaultModelRendering"] = modelRendering.ToString().ToLower();
 }