🚀 v1.3.0
[New]
FallbackAttribute: Catch-all route viaMapFallback(handler)(no route parameter when default)ExcludeFromDescriptionAttribute: Hides endpoint from OpenAPI/SwaggerProducesProblemAttribute: ProblemDetails response configurationEnableRateLimitingAttribute/DisableRateLimitingAttribute: Rate limiting supportCacheOutputAttribute/DisableOutputCacheAttribute: Output caching supportRequestSizeLimitAttribute/DisableRequestSizeLimitAttribute: Request body size limitsEndpointGroupNameAttribute: Sets OpenAPI group name without affecting routingSkipStatusCodePagesAttribute: Skips status code pages middleware per endpointRequestTimeoutAttribute/DisableRequestTimeoutAttribute: Per-endpoint request timeouts (.NET 8+)- Sample project at
samples/EZ.MinimalApi.Samplewith all attributes in use - Test project at
tests/EZ.MinimalApi.Generator.Testswith 9+ tests
[Fix]
- EZ0003 (
MethodMustBeStaticRule): Now correctly validates that endpoint methods arestatic(was defined but never checked) AuthorizationAttribute: Addedparams string[]constructor for multiple policies ([Authorization("Admin", "SuperUser")])CorsAttribute: Replaced single-policy constructor withparams string[]([Cors("P1", "P2")])AcceptsAttribute.AddtionalContentTypes: Fixed typo →AdditionalContentTypesProducessAttribute.cs: Renamed toProducesAttribute.cs
[Changed]
- Generated files now conditionally add
using Microsoft.AspNetCore.RateLimiting;when rate limiting attributes are used - Generated files now conditionally add
using Microsoft.AspNetCore.OutputCaching;when output caching attributes are used - Generated files now conditionally add
using Microsoft.AspNetCore.Http.Timeouts;when request timeout attributes are used
⬇️ How to update
dotnet add package EZ.MinimalApi --version 1.3.0