pub fn generate_openapi_spec(
title: &str,
version: &str,
localizer: &dyn IStringLocalizer,
) -> ValueExpand description
Generate an OpenAPI 3.0.3 specification from registered routes.
Endpoint names and descriptions are resolved through localizer using the
host’s configured default culture; OpenAPI has no multi-language operation
text, so one document is produced per hosted language.
Returns a serde_json::Value that can be serialized to JSON.