Skip to content

Commit

Permalink
Merge pull request #11 from snifter/master
Browse files Browse the repository at this point in the history
Support for HotChocolate v14
  • Loading branch information
VarunSaiTeja authored Jan 4, 2025
2 parents f10f44f + caa36d6 commit e163f27
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ $tf/
# Guidance Automation Toolkit
*.gpState

# JetBrains IDE files
.idea/

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ As HotChocolate doesn't validate input arguments, After installing this package,

**Installation Note**:

Use Graph.ArgumentValidator v4.0.0 if you are using HotChocolate v14.

Use Graph.ArgumentValidator v3.0.0 if you are using HotChocolate v13.

Use Graph.ArgumentValidator v2.0.0 if you are using HotChocolate v12.
Expand Down
2 changes: 1 addition & 1 deletion Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.7.0" />
<PackageReference Include="HotChocolate.AspNetCore" Version="14.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 1 addition & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<PackageId>$(MSBuildProjectName)</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<Version>3.0.0</Version>

<LibraryTargetFrameworks>net6.0;net5.0; netcoreapp3.1; netstandard2.0</LibraryTargetFrameworks>
<TestTargetFrameworks>net6.0;net5.0; netcoreapp3.1; netcoreapp2.1</TestTargetFrameworks>
<Version>4.0.0</Version>
</PropertyGroup>
</Project>
6 changes: 3 additions & 3 deletions src/Graph.ArgumentValidator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net8.0; net6.0</TargetFrameworks>
<ExtendedTargetFrameworks>net8.0; net6.0; netstandard2.0</ExtendedTargetFrameworks>
<PackageTags>HotChocolate.Validator, HotChocolate, GraphQL</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HotChocolate.Execution" Version="13.7.0" />
<PackageReference Include="HotChocolate.Execution" Version="14.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions test/Graph.ArgumentValidator.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Snapshooter.Xunit" Version="0.13.0" />
<PackageReference Include="Snapshooter.Xunit" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"errors": [
{
"message": "The String field is not a valid e-mail address.",
"locations": [
{
"line": 1,
"column": 3
}
],
"path": [
"email"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"errors": [
{
"message": "Email already exist",
"locations": [
{
"line": 1,
"column": 3
}
],
"path": [
"email"
],
Expand All @@ -13,4 +19,4 @@
"data": {
"checkDuplicateEmail": null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"errors": [
{
"message": "The Email field is not a valid e-mail address.",
"locations": [
{
"line": 1,
"column": 3
}
],
"path": [
"input"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"errors": [
{
"message": "\u0060scoreCard\u0060 is a required field and cannot be null.",
"message": "`scoreCard` is a required field and cannot be null.",
"locations": [
{
"line": 1,
Expand All @@ -13,7 +13,7 @@
],
"extensions": {
"field": "scoreCard",
"specifiedBy": "http://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields"
"specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields"
}
}
]
Expand Down

0 comments on commit e163f27

Please sign in to comment.