We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaac7d commit 7ce1d0fCopy full SHA for 7ce1d0f
src/TodoApp/OpenApi/NSwag/NSwagOpenApiEndpoints.cs
@@ -90,6 +90,11 @@ public static T UseNSwagOpenApi<T>(this T builder)
90
}
91
};
92
93
+
94
+ // For the purposes of comparison with the other implementations in the benchmarks,
95
+ // disable document caching. Otherwise, NSwag will only generate the OpenAPI document
96
+ // once and every request for the OpenAPI document becomes essentially "free".
97
+ settings.CreateDocumentCacheKey = (_) => Guid.NewGuid().ToString();
98
});
99
100
return builder;
0 commit comments