7.1.6
Stable 7.1.6 (supersedes the unreleased 7.1.5 betas).
Changes
- Fixed:
$refreplaced with an inline copy (and the child component left orphaned) when a nested object's constraints come fromChildRulesor 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 itsrequiredonly after the parent's inline snapshot — the stalerequireddiverged and defeated the restore check. TheRequiredcomparison inHasValidationConstraintChangesis now directional. SetValidator(with a standalone child validator) was already correct;BigInteger/enum per-model constraints (#146/#176) continue to work.
- The 7.1.3 fix restored unmodified
- Added:
ConditionalRulesModeoption 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 singlepatternvia lookahead assertions, across Swashbuckle,MicroElements.AspNetCore.OpenApi.FluentValidation, and NSwag (#204, #205).- Changed: default of
SchemaGenerationOptions.UseAllOfForMultipleRulestrue→false; set it totrueto keep the legacyallOfrepresentation.
- Changed: default of
NuGet: https://www.nuget.org/packages/MicroElements.Swashbuckle.FluentValidation/7.1.6