I want to add a plugin into swagger UI, but I can not inject script of plugin and configure plugin. The configuration of plugin needs functions as property, simple json can not deserialize to function.
Add properties to option class.
public List<string> JavascriptUrls { get; set; } // inject <script scr=""></script>
public string? CustomJavascriptCode { get; set; } // will run before init swagger application, config object is a parameter.
I want to add a plugin into swagger UI, but I can not inject script of plugin and configure plugin. The configuration of plugin needs functions as property, simple json can not deserialize to function.
Add properties to option class.