Skip to content

7.1.5-beta.2

Pre-release
Pre-release

Choose a tag to compare

@avgalex avgalex released this 16 May 12:18

Pre-release for the upcoming 7.1.5.

Changes since 7.1.5-beta

  • Fixed: Multiple .Matches() rules on one property displayed incorrectly — only the first pattern shown, property duplicated (#204, #205).
    • Multiple patterns were placed into separate allOf subschemas, which Swagger UI/Redoc/Scalar collapse, keeping only the first pattern.
    • Now multiple .Matches() rules are combined into a single pattern via lookahead assertions, preserving .Matches() semantics and rendering correctly.
    • Applied to all providers: Swashbuckle, MicroElements.AspNetCore.OpenApi.FluentValidation, and NSwag.
    • Behavior change: SchemaGenerationOptions.UseAllOfForMultipleRules default true → false; set it to true to keep the legacy allOf representation.

Already in 7.1.5-beta

  • Added: ConditionalRulesMode option to control how .When()/.Unless() conditional rules are handled during schema generation (#203).

See CHANGELOG.md for full details.