- Swashbuckle.AspNetCore updated and restricted to version [4.0.0, 5.0.0)
- Breaking Changes: FluentValidation updated to 8.1.3 to support when/unless (PR#27)
- Changes: Running through included validators recursively to add the entire tree (PR#29)
- Changes: Numeric types includes decimal
- Changes: Schema Minimum and Maximum now supports doubles (was only int)
- WARNING: ScopedSwaggerMiddleware doesn't work as expected because Swashbuckle.AspNetCore changed a lot. Looking for workaround.
- Added: Numeric types includes decimal
- Swashbuckle.AspNetCore version locked to versions [1.1.0-3.0.0] because version 4.0.0 has breaking changes. Next version will be 2.0.0 according semver.
- Added ScopedSwaggerMiddleware to resolve error "Cannot resolve 'MyValidator' from root provider because it requires scoped service 'TDependency'"
- Added support for Include
- Bugfixes
- Updated samples and documentation
- Build scripts migrated to MicroElements.Devops
- Build: added SourceLink
- Fixed: GH-13: Fixed warning with null schema.Properties
- Fixed: GH-12: Fixed NullReferenceException, if schema.Properties is null
- New feature: FluentValidation rules for get operation parameters binded from models with validators. Adds swagger validation for parameters: Required, MinLength, MaxLength, Minimum, Maximum, Pattern (DataAnnotation works only with [Required]).
- Fixed: GH-10: Now member search is IgnoreCase
- Fixed: Possible double Required
- Improved stability and diagnostics
- Added GetValidator error handling, ApplyRule error handling
- Added ability to work without provided FluentValidation (does not break anything)
- Added ability to use Microsoft.Extensions.Logging.Abstractions (no additional dependencies)
- Added logging in error points (logs as warnings)
- Fixed: GH-6: Removed empty required array from swagger schema
- Supported float and double values for IComparisonValidator and IBetweenValidator
- Refactored to easy add new rules
- Added ability to add rules through DI Supported validators:
- INotNullValidator (NotNull)
- INotEmptyValidator (NotEmpty)
- ILengthValidator (Length, MinimumLength, MaximumLength, ExactLength)
- IRegularExpressionValidator (Email, Matches)
- IComparisonValidator (GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual)
- IBetweenValidator (InclusiveBetween, ExclusiveBetween)
- FluentValidationRulesRegistrator moved to main swagger namespace
- Added FluentValidationRulesRegistrator
- Added FluentValidationRules.
Full release notes can be found at https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md