Skip to content

7.2.4

Choose a tag to compare

@avgalex avgalex released this 03 Nov 14:20
· 23 commits to master since this release

Fixes a regression introduced in 7.2.3 where MicroElements.AspNetCore.OpenApi.FluentValidation could omit string minLength and maxLength constraints when a custom JSON converter left the property's OpenAPI schema type unset.

The length rule now uses the FluentValidation target's CLR string type when the schema type is absent. Explicit schema types and the non-string identity ChildRules safeguards remain respected. The reproducer from issue #238 now preserves minLength: 10 and maxLength: 500 without changing transformer registration order.

Validation: 590 tests passed locally in Release configuration on .NET 8/9/10 using SDK 10.0.100. New regression tests cover converters, late schema type restoration, child-rule optionality, and non-string schema types. The author's Wolverine example was also verified with the fix.

CI passed on Linux and Windows. All four 7.2.4 packages are available in MyGet. The attached packages were downloaded from MyGet and include SHA-256 checksums. Promotion to nuget.org is handled manually.

Issue: #238

Full changelog: v7.2.3...v7.2.4