Skip to content

7.1.7

Latest

Choose a tag to compare

@avgalex avgalex released this 20 Jun 12:55
· 12 commits to master since this release
ad34293

Stable release 7.1.7 — promotes 7.1.7-beta.3 to stable.

Fixed

  • Nested [FromQuery] fixes (#209 + #211) now also apply to the native Microsoft.AspNetCore.OpenApi transformer and the experimental Swashbuckle DocumentFilter (Issue #213)
    • FluentValidationOperationTransformer now follows the same reachability + ancestor-required rules as the Swashbuckle OperationFilter
    • The experimental FluentValidationDocumentFilter no longer copies value constraints onto a flattened nested parameter whose nested validation is not wired from the root validator
    • GetMethodInfo now resolves the action method from ControllerActionDescriptor (MVC controllers), not only minimal-API endpoint metadata
    • NSwag is unaffected (it has no [FromQuery] parameter flattening)
  • A validator for a nested type bound via [FromQuery] was reflected in the OpenAPI document even when it was not wired into the root validator via SetValidator/ChildRules (Issue #211)
    • Nested rules are now applied only when the SetValidator/ChildRules chain from the action's root [FromQuery] validator actually reaches the leaf container
    • Behavioral change: when no validator is registered for the root [FromQuery] type, a flattened nested parameter is left unconstrained — matching runtime
  • A required leaf property inside an optional nested type bound via [FromQuery] was wrongly marked as a required parameter (Issue #209)
    • A flattened nested parameter is now marked required only when every ancestor segment of the dot-path is required
    • Value constraints (e.g. minLength) still apply to an optional nested parameter when it is provided

Full changelog: CHANGELOG.md