Skip to content

7.1.6

Choose a tag to compare

@avgalex avgalex released this 02 Jun 16:01
· 51 commits to master since this release
2ee3c55

Stable 7.1.6 (supersedes the unreleased 7.1.5 betas).

Changes

  • Fixed: $ref replaced with an inline copy (and the child component left orphaned) when a nested object's constraints come from ChildRules or an inline child validator (#198, #206).
    • The 7.1.3 fix restored unmodified $refs, but when the nested type had no standalone validator its component schema gained its required only after the parent's inline snapshot — the stale required diverged and defeated the restore check. The Required comparison in HasValidationConstraintChanges is now directional.
    • SetValidator (with a standalone child validator) was already correct; BigInteger/enum per-model constraints (#146/#176) continue to work.
  • Added: ConditionalRulesMode option to control how .When()/.Unless() conditional rules are handled (Exclude (default) / Include / IncludeWithWarning) (#203).
  • Fixed: Multiple .Matches() rules on one property rendered incorrectly (only the first pattern shown). They are now combined into a single pattern via lookahead assertions, across Swashbuckle, MicroElements.AspNetCore.OpenApi.FluentValidation, and NSwag (#204, #205).
    • Changed: default of SchemaGenerationOptions.UseAllOfForMultipleRules truefalse; set it to true to keep the legacy allOf representation.

NuGet: https://www.nuget.org/packages/MicroElements.Swashbuckle.FluentValidation/7.1.6