Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace HotChocolate.Configuration.Validation;

/// <summary>
/// Implements directive type validation defined in the spec.
/// https://spec.graphql.org/draft/#sec-Type-System.Directives.Validation
/// https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation
/// </summary>
internal sealed class DirectiveValidationRule : ISchemaValidationRule
{
Expand Down
2 changes: 1 addition & 1 deletion src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static class ErrorHelper
private const string InterfaceTypeValidation = "sec-Interfaces.Type-Validation";
private const string ObjectTypeValidation = "sec-Objects.Type-Validation";
private const string InputObjectTypeValidation = "sec-Input-Objects.Type-Validation";
private const string DirectiveValidation = "sec-Type-System.Directives.Validation";
private const string DirectiveValidation = "sec-Type-System.Directives.Type-Validation";

public static ISchemaError NeedsOneAtLeastField(ITypeDefinition type)
=> SchemaErrorBuilder.New()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"message": "Argument names starting with `__` are reserved for the GraphQL specification.",
"extensions": {
"argument": "__badArg",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"message": "Names starting with `__` are reserved for the GraphQL specification.",
"extensions": {
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extensions": {
"argument": "badArg",
"rfc": "https://github.com/graphql/graphql-spec/pull/805",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"extensions": {
"argument": "obsoleteWithReason",
"rfc": "https://github.com/graphql/graphql-spec/pull/805",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"extensions": {
"argument": "bar",
"rfc": "https://github.com/graphql/graphql-spec/pull/805",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"extensions": {
"argument": "bar",
"rfc": "https://github.com/graphql/graphql-spec/pull/805",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Validation"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Type-System.Directives.Type-Validation"
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"Exception": null,
"Extensions": {
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-In-Valid-Locations"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-in-Valid-Locations"
}
},
{
Expand All @@ -28,7 +28,7 @@
],
"Exception": null,
"Extensions": {
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-In-Valid-Locations"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-in-Valid-Locations"
}
},
{
Expand All @@ -45,7 +45,7 @@
],
"Exception": null,
"Extensions": {
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-In-Valid-Locations"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-in-Valid-Locations"
}
},
{
Expand All @@ -62,7 +62,7 @@
],
"Exception": null,
"Extensions": {
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-In-Valid-Locations"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Directives-Are-in-Valid-Locations"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "Query",
"field": "",
"responseName": "",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections"
},
"Exception": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "Query",
"field": "",
"responseName": "",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections"
},
"Exception": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "Query",
"field": "",
"responseName": "",
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types"
"specifiedBy": "https://spec.graphql.org/September2025/#sec-Field-Selections"
},
"Exception": null
}
Expand Down
Loading