Manually describe Version for openapi

pull/7775/head
Cody Robibero 2 years ago
parent 60affd0965
commit 760b021032

@ -440,6 +440,12 @@ namespace Jellyfin.Server.Extensions
.Cast<IOpenApiAny>()
.ToArray()
});
// Swashbuckle doesn't use JsonOptions to describe responses, so we need to manually describe it.
options.MapType<Version>(() => new OpenApiSchema
{
Type = "string"
});
}
}
}

Loading…
Cancel
Save