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
I have "Swashbuckle.AspNetCore": "1.0.0-rc1". /swagger/v1/swagger.json is generated fine. But /swagger/index.html failed, because js in case sensitive and html contains:
window.swaggerUi = new SwaggerUi({
url: JSConfig.SwaggerEndpoints[0].Url,
and more of them, trying to get properties in pascalcase.
I also noticed when there is just app.UseSwaggerUi) instead of app.UseSwaggerUi(x => x.SwaggerEndpoint("/swagger/v1/swagger.json", "API v1"));, "swaggerEndpoints":[] is empty array (but /swagger/v1/swagger.json is still generated of course). Docs says it will be default value when there is
services.AddSwaggerGen(o =>
{
o.SwaggerDoc("v1", new Info { Title = "API", Version = "v1" });
}
The text was updated successfully, but these errors were encountered:
I think your code or one of your dependencies is settings some global JsonConvert Serialization settings. Which is as bad as relying on those global settings in terms of practices.
I hope the patched code will be released soon, but meanwhile you should remove JsonConvert.DefaultSettings and pass appropriate serialization settings instead when using Serialize or Deserialize.
I have
"Swashbuckle.AspNetCore": "1.0.0-rc1"
./swagger/v1/swagger.json
is generated fine. But/swagger/index.html
failed, because js in case sensitive and html contains:but later there is
and more of them, trying to get properties in pascalcase.
I also noticed when there is just
app.UseSwaggerUi)
instead ofapp.UseSwaggerUi(x => x.SwaggerEndpoint("/swagger/v1/swagger.json", "API v1"));
,"swaggerEndpoints":[]
is empty array (but/swagger/v1/swagger.json
is still generated of course). Docs says it will be default value when there isThe text was updated successfully, but these errors were encountered: