Skip to content
Permalink
Browse files

Upgrade to latest FluentValidation v8.2.3+

commit: ccc369b9b1de07bcfadd95daff5d5500fcead18e
  • Loading branch information...
mythz committed Apr 23, 2019
1 parent ea2788c commit 6e40ce8fa1fd3ea6a038db48a0e1ff5fe9a318c0
Showing with 3,542 additions and 2,336 deletions.
  1. +1 −1 src/ServiceStack.Mvc/FluentValidation/CustomizeValidatorAttribute.cs
  2. +2 −2 src/ServiceStack.Mvc/FluentValidation/FluentValidationModelMetadataProvider.cs
  3. +1 −1 src/ServiceStack.Mvc/FluentValidation/FluentValidationModelValidator.cs
  4. +1 −1 src/ServiceStack.Mvc/FluentValidation/FluentValidationModelValidatorProvider.cs
  5. +1 −1 src/ServiceStack.Mvc/FluentValidation/IValidatorInterceptor.cs
  6. +1 −1 ...ack.Mvc/FluentValidation/PropertyValidatorAdapters/CreditCardFluentValidationPropertyValidator.cs
  7. +1 −1 ...iceStack.Mvc/FluentValidation/PropertyValidatorAdapters/EmailFluentValidationPropertyValidator.cs
  8. +1 −1 ...eStack.Mvc/FluentValidation/PropertyValidatorAdapters/EqualToFluentValidationPropertyValidator.cs
  9. +1 −1 src/ServiceStack.Mvc/FluentValidation/PropertyValidatorAdapters/FluentValidationPropertyValidator.cs
  10. +1 −1 ...iceStack.Mvc/FluentValidation/PropertyValidatorAdapters/RangeFluentValidationPropertyValidator.cs
  11. +1 −1 .../FluentValidation/PropertyValidatorAdapters/RegularExpressionFluentValidationPropertyValidator.cs
  12. +1 −1 ...Stack.Mvc/FluentValidation/PropertyValidatorAdapters/RequiredFluentValidationPropertyValidator.cs
  13. +1 −1 ...k.Mvc/FluentValidation/PropertyValidatorAdapters/StringLengthFluentValidationPropertyValidator.cs
  14. +1 −1 src/ServiceStack.Mvc/FluentValidation/RuleSetForClientSideMessagesAttribute.cs
  15. +1 −1 src/ServiceStack.Mvc/FluentValidation/ValidationResultExtension.cs
  16. +121 −159 src/ServiceStack/FluentValidation/AbstractValidator.cs
  17. +2 −2 src/ServiceStack/FluentValidation/AssemblyInfo.FluentValidation.cs
  18. +27 −18 src/ServiceStack/FluentValidation/AssemblyScanner.cs
  19. +16 −29 src/ServiceStack/FluentValidation/Attributes/AttributedValidatorFactory.cs
  20. +2 −4 src/ServiceStack/FluentValidation/{ → Attributes}/IParameterValidatorFactory.cs
  21. +4 −8 src/ServiceStack/FluentValidation/Attributes/ValidatorAttribute.cs
  22. +18 −29 src/ServiceStack/FluentValidation/BackwardsCompatibility.cs
  23. +78 −20 src/ServiceStack/FluentValidation/CollectionValidatorExtensions.cs
  24. +99 −67 src/ServiceStack/FluentValidation/DefaultValidatorExtensions.cs
  25. +204 −77 src/ServiceStack/FluentValidation/DefaultValidatorOptions.cs
  26. +4 −4 src/ServiceStack/FluentValidation/IValidationRule.cs
  27. +14 −14 src/ServiceStack/FluentValidation/IValidator.cs
  28. +3 −6 src/ServiceStack/FluentValidation/InlineValidator.cs
  29. +64 −0 src/ServiceStack/FluentValidation/Internal/AccessorCache.cs
  30. +89 −33 src/ServiceStack/FluentValidation/Internal/CollectionPropertyRule.cs
  31. +215 −0 src/ServiceStack/FluentValidation/Internal/ConditionBuilder.cs
  32. +6 −1 src/ServiceStack/FluentValidation/Internal/DefaultValidatorSelector.cs
  33. +0 −176 src/ServiceStack/FluentValidation/Internal/DelegateValidator.cs
  34. +39 −0 src/ServiceStack/FluentValidation/Internal/DisplayNameCache.cs
  35. +49 −23 src/ServiceStack/FluentValidation/Internal/Extensions.cs
  36. +77 −0 src/ServiceStack/FluentValidation/Internal/IncludeRule.cs
  37. +0 −127 src/ServiceStack/FluentValidation/Internal/InstanceCache.cs
  38. +11 −5 src/ServiceStack/FluentValidation/Internal/MemberNameValidatorSelector.cs
  39. +44 −0 src/ServiceStack/FluentValidation/Internal/MessageBuilderContext.cs
  40. +59 −9 src/ServiceStack/FluentValidation/Internal/MessageFormatter.cs
  41. +20 −19 src/ServiceStack/FluentValidation/Internal/PropertyChain.cs
  42. +200 −179 src/ServiceStack/FluentValidation/Internal/PropertyRule.cs
  43. +41 −10 src/ServiceStack/FluentValidation/Internal/RuleBuilder.cs
  44. +37 −9 src/ServiceStack/FluentValidation/Internal/RulesetValidatorSelector.cs
  45. +39 −6 src/ServiceStack/FluentValidation/Internal/TrackingCollection.cs
  46. +7 −5 src/ServiceStack/FluentValidation/MemberAccessor.cs
  47. +7 −0 src/ServiceStack/FluentValidation/Resources/IContextAwareStringSource.cs
  48. +4 −6 src/ServiceStack/FluentValidation/Resources/IStringSource.cs
  49. +2 −2 src/ServiceStack/FluentValidation/Resources/Language.cs
  50. +13 −47 src/ServiceStack/FluentValidation/Resources/LanguageManager.cs
  51. +37 −3 src/ServiceStack/FluentValidation/Resources/LanguageStringSource.cs
  52. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/AlbanianLanguage.cs
  53. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/ArabicLanguage.cs
  54. +15 −13 src/ServiceStack/FluentValidation/Resources/Languages/ChineseSimplifiedLanguage.cs
  55. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/ChineseTraditionalLanguage.cs
  56. +12 −16 src/ServiceStack/FluentValidation/Resources/Languages/CroatianLanguage.cs
  57. +7 −5 src/ServiceStack/FluentValidation/Resources/Languages/CzechLanguage.cs
  58. +6 −4 src/ServiceStack/FluentValidation/Resources/Languages/DanishLanguage.cs
  59. +5 −5 src/ServiceStack/FluentValidation/Resources/Languages/DutchLanguage.cs
  60. +8 −9 src/ServiceStack/FluentValidation/Resources/Languages/EnglishLanguage.cs
  61. +11 −6 src/ServiceStack/FluentValidation/Resources/Languages/FinnishLanguage.cs
  62. +7 −3 src/ServiceStack/FluentValidation/Resources/Languages/FrenchLanguage.cs
  63. +8 −9 src/ServiceStack/FluentValidation/Resources/Languages/GeorgianLanguage.cs
  64. +10 −4 src/ServiceStack/FluentValidation/Resources/Languages/GermanLanguage.cs
  65. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/GreekLanguage.cs
  66. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/HebrewLanguage.cs
  67. +3 −3 src/ServiceStack/FluentValidation/Resources/Languages/HindiLanguage.cs
  68. +10 −6 src/ServiceStack/FluentValidation/Resources/Languages/ItalianLanguage.cs
  69. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/JapaneseLanguage.cs
  70. +6 −4 src/ServiceStack/FluentValidation/Resources/Languages/KoreanLanguage.cs
  71. +6 −3 src/ServiceStack/FluentValidation/Resources/Languages/MacedonianLanguage.cs
  72. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/NorwegianBokmalLanguage.cs
  73. +4 −3 src/ServiceStack/FluentValidation/Resources/Languages/PersianLanguage.cs
  74. +12 −10 src/ServiceStack/FluentValidation/Resources/Languages/PolishLanguage.cs
  75. +53 −0 src/ServiceStack/FluentValidation/Resources/Languages/PortugueseBrazilLanguage.cs
  76. +7 −3 src/ServiceStack/FluentValidation/Resources/Languages/PortugueseLanguage.cs
  77. +3 −3 src/ServiceStack/FluentValidation/Resources/Languages/RomanianLanguage.cs
  78. +3 −3 src/ServiceStack/FluentValidation/Resources/Languages/RussianLanguage.cs
  79. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/SlovakLanguage.cs
  80. +9 −5 src/ServiceStack/FluentValidation/Resources/Languages/SpanishLanguage.cs
  81. +7 −3 src/ServiceStack/FluentValidation/Resources/Languages/SwedishLanguage.cs
  82. +19 −15 src/ServiceStack/FluentValidation/Resources/Languages/TurkishLanguage.cs
  83. +51 −0 src/ServiceStack/FluentValidation/Resources/Languages/UkrainianLanguage.cs
  84. +3 −37 src/ServiceStack/FluentValidation/Resources/LazyStringSource.cs
  85. +33 −0 src/ServiceStack/FluentValidation/Resources/LocalaizedStringSource.cs
  86. +13 −122 src/ServiceStack/FluentValidation/Resources/LocalizedStringSource.cs
  87. +5 −4 src/ServiceStack/FluentValidation/Resources/StaticStringSource.cs
  88. +1 −1 src/ServiceStack/FluentValidation/Results/ValidationFailure.Partial.cs
  89. +12 −7 src/ServiceStack/FluentValidation/Results/ValidationFailure.cs
  90. +20 −1 src/ServiceStack/FluentValidation/Results/ValidationResult.cs
  91. +36 −15 src/ServiceStack/FluentValidation/Syntax.cs
  92. +7 −7 src/ServiceStack/FluentValidation/TestHelper/TestPropertyChain.cs
  93. +35 −37 src/ServiceStack/FluentValidation/TestHelper/ValidationResultTester.cs
  94. +9 −0 src/ServiceStack/FluentValidation/TestHelper/ValidationTestException.cs
  95. +95 −20 src/ServiceStack/FluentValidation/TestHelper/ValidatorTestExtensions.cs
  96. +1 −1 src/ServiceStack/FluentValidation/ValidationContext.Partial.cs
  97. +88 −10 src/ServiceStack/FluentValidation/ValidationContext.cs
  98. +34 −19 src/ServiceStack/FluentValidation/ValidationException.cs
  99. +19 −18 src/ServiceStack/FluentValidation/ValidatorDescriptor.cs
  100. +98 −0 src/ServiceStack/FluentValidation/ValidatorMetadata.cs
  101. +18 −34 src/ServiceStack/FluentValidation/ValidatorOptions.cs
  102. +7 −9 src/ServiceStack/FluentValidation/Validators/AbstractComparisonValidator.cs
  103. +36 −19 src/ServiceStack/FluentValidation/Validators/AsyncPredicateValidator.cs
  104. +27 −2 src/ServiceStack/FluentValidation/Validators/AsyncValidatorBase.cs
  105. +0 −135 src/ServiceStack/FluentValidation/Validators/ChildCollectionValidatorAdaptor.cs
  106. +62 −39 src/ServiceStack/FluentValidation/Validators/ChildValidatorAdaptor.cs
  107. +24 −16 src/ServiceStack/FluentValidation/Validators/CustomValidator.cs
  108. +27 −45 src/ServiceStack/FluentValidation/Validators/DelegatingValidator.cs
  109. +31 −11 src/ServiceStack/FluentValidation/Validators/EmailValidator.cs
  110. +17 −20 src/ServiceStack/FluentValidation/Validators/EmptyValidator.cs
  111. +45 −54 src/ServiceStack/FluentValidation/Validators/EnumValidator.cs
  112. +17 −20 src/ServiceStack/FluentValidation/Validators/EqualValidator.cs
  113. +3 −5 src/ServiceStack/FluentValidation/Validators/ExclusiveBetweenValidator.cs
  114. +1 −3 src/ServiceStack/FluentValidation/Validators/GreaterThanOrEqualValidator.cs
  115. +1 −4 src/ServiceStack/FluentValidation/Validators/GreaterThanValidator.cs
  116. +23 −7 src/ServiceStack/FluentValidation/Validators/IPropertyValidator.cs
  117. +3 −4 src/ServiceStack/FluentValidation/Validators/InclusiveBetweenValidator.cs
  118. +4 −24 src/ServiceStack/FluentValidation/Validators/LengthValidator.cs
  119. +0 −2 src/ServiceStack/FluentValidation/Validators/LessThanOrEqualValidator.cs
  120. +0 −2 src/ServiceStack/FluentValidation/Validators/LessThanValidator.cs
  121. +4 −25 src/ServiceStack/FluentValidation/Validators/NoopPropertyValidator.cs
  122. +14 −19 src/ServiceStack/FluentValidation/Validators/NotEmptyValidator.cs
  123. +10 −12 src/ServiceStack/FluentValidation/Validators/NotEqualValidator.cs
  124. +44 −0 src/ServiceStack/FluentValidation/Validators/OnFailureValidator.cs
  125. +4 −7 src/ServiceStack/FluentValidation/Validators/PredicateValidator.cs
  126. +39 −73 src/ServiceStack/FluentValidation/Validators/PropertyValidator.cs
  127. +19 −18 src/ServiceStack/FluentValidation/Validators/PropertyValidatorContext.cs
  128. +34 −19 src/ServiceStack/FluentValidation/Validators/RegularExpressionValidator.cs
  129. +130 −135 src/ServiceStack/FluentValidation/Validators/ScalePrecisionValidator.cs
  130. +1 −1 src/ServiceStack/InProcessServiceGateway.cs
  131. +7 −2 src/ServiceStack/Validation/MultiRuleSetValidatorSelector.cs
  132. +4 −3 src/ServiceStack/Validation/ValidationFeature.cs
  133. +8 −9 src/ServiceStack/Validation/ValidationFilters.cs
  134. +2 −2 tests/ServiceStack.WebHost.Endpoints.Tests/AlwaysThrowsService.cs
  135. +2 −2 tests/ServiceStack.WebHost.Endpoints.Tests/AsyncFiltersTests.cs
  136. +4 −4 tests/ServiceStack.WebHost.Endpoints.Tests/CustomerServiceValidationTests.cs
  137. +1 −1 tests/ServiceStack.WebHost.Endpoints.Tests/ServiceGatewayTests.cs
  138. +2 −2 tests/ServiceStack.WebHost.Endpoints.Tests/ValidationCustomTests.cs
@@ -19,7 +19,7 @@

using ServiceStack.FluentValidation.Internal;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System;
using System.Collections.Generic;
using System.Reflection;
@@ -22,7 +22,7 @@
using ServiceStack.FluentValidation.Results;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -169,7 +169,7 @@ public Attribute ToAttribute()
}
}

namespace FluentValidation.Mvc.MetadataExtensions
namespace ServiceStack.FluentValidation.Mvc.MetadataExtensions
{
using System;
using System.Collections.Generic;
@@ -3,7 +3,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Results;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System;
using System.Collections.Generic;
using System.Linq;
@@ -22,7 +22,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System;
using System.Collections.Generic;
using System.Linq;
@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation;
using ServiceStack.FluentValidation.Results;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Web.Mvc;

/// <summary>
@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc
namespace ServiceStack.FluentValidation.Mvc
{
using System.Collections.Generic;
using System.Web.Mvc;
@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc
namespace ServiceStack.FluentValidation.Mvc
{
using System.Collections.Generic;
using System.Web.Mvc;
@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Collections.Generic;
using System.Reflection;
using System.Web.Mvc;
@@ -3,7 +3,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System;
using System.Collections.Generic;
using System.Web.Mvc;
@@ -3,7 +3,7 @@
using ServiceStack.FluentValidation.Resources;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;

@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;

@@ -2,7 +2,7 @@
using ServiceStack.FluentValidation.Internal;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;

@@ -3,7 +3,7 @@
using ServiceStack.FluentValidation.Resources;
using ServiceStack.FluentValidation.Validators;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Collections.Generic;
using System.Web.Mvc;

@@ -1,5 +1,5 @@
#if !NETSTANDARD2_0
namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Web;
using System.Web.Mvc;

@@ -19,7 +19,7 @@

using ServiceStack.FluentValidation.Results;

namespace FluentValidation.Mvc {
namespace ServiceStack.FluentValidation.Mvc {
using System.Globalization;
using System.Web.Mvc;

0 comments on commit 6e40ce8

Please sign in to comment.
You can’t perform that action at this time.