Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
+ `RequiredIfAttribute` can now be added multiple times to an element
  • Loading branch information
nd1012 committed Jul 13, 2024
1 parent f97eaaf commit 68f8bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObjectValidation/ObjectValidation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>2.5.0</Version>
<Version>2.6.1</Version>
<DebugType>embedded</DebugType>
<EmbedAllSources>true</EmbedAllSources>
<Configurations>Debug;Release;Trunk</Configurations>
Expand Down
1 change: 1 addition & 0 deletions src/ObjectValidation/RequiredIfAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace wan24.ObjectValidation
/// <param name="propertyName">Checked property name</param>
/// <param name="values">Values (one of the value is required in order to match this condition; if not given, the value is required if the checked property has a non-
/// <see langword="null"/> value)</param>
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)]
public class RequiredIfAttribute(string propertyName, params object?[] values) : RequiredAttribute()
{
/// <summary>
Expand Down

0 comments on commit 68f8bfd

Please sign in to comment.