Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae99fa2

Browse filesBrowse files
v2.0 : Rules based Schema Format Strategy (#154)
* renamed schema format strategy * condensed name methods to 1 with an specifier parameter and extracted an interface for further customization * removed the need for an exposed "name formatter", all type name formatting is done within the schema. no more magic strings. * Revamped format strategy to be rules based with the builder facilitating the addition of built in rules.
1 parent 63ecf18 commit ae99fa2
Copy full SHA for ae99fa2

File tree

Expand file treeCollapse file tree

103 files changed

+2646
-1583
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

103 files changed

+2646
-1583
lines changed

‎src/ancillary-projects/starwars/starwars-api70/Program.cs

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/Program.cs
-29Lines changed: 0 additions & 29 deletions
This file was deleted.

‎src/ancillary-projects/starwars/starwars-api70/Properties/launchSettings.json

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/Properties/launchSettings.json
-12Lines changed: 0 additions & 12 deletions
This file was deleted.

‎src/ancillary-projects/starwars/starwars-api70/Startup.cs

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/Startup.cs
-174Lines changed: 0 additions & 174 deletions
This file was deleted.

‎src/ancillary-projects/starwars/starwars-api70/appsettings.json

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/appsettings.json
-12Lines changed: 0 additions & 12 deletions
This file was deleted.

‎src/ancillary-projects/starwars/starwars-api70/starwars-api70.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/starwars-api70.csproj
-26Lines changed: 0 additions & 26 deletions
This file was deleted.

‎src/graphql-aspnet-subscriptions/Attributes/SubscriptionRootAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Attributes/SubscriptionRootAttribute.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace GraphQL.AspNet.Attributes
1111
{
1212
using System;
1313
using System.Linq;
14-
using GraphQL.AspNet.Common.Extensions;
1514
using GraphQL.AspNet.Execution;
1615
using GraphQL.AspNet.Interfaces.Schema;
1716

@@ -92,15 +91,15 @@ public SubscriptionRootAttribute(string template, Type returnType, params Type[]
9291
/// </summary>
9392
/// <param name="template">The template naming scheme to use to generate a graph field from this method.</param>
9493
/// <param name="unionTypeName">Name of the union type.</param>
95-
/// <param name="unionTypeA">The first of two required types to include in the union.</param>
94+
/// <param name="firstUnionType">The first of two required types to include in the union.</param>
9695
/// <param name="additionalUnionTypes">Any additional union types.</param>
97-
public SubscriptionRootAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
96+
public SubscriptionRootAttribute(string template, string unionTypeName, Type firstUnionType, params Type[] additionalUnionTypes)
9897
: base(
9998
true,
10099
ItemPathRoots.Subscription,
101100
template,
102101
unionTypeName,
103-
(new Type[] { unionTypeA }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
102+
(new Type[] { firstUnionType }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
104103
{
105104
this.EventName = null;
106105
}

‎src/graphql-aspnet.sln

Copy file name to clipboardExpand all lines: src/graphql-aspnet.sln
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-subscription
3131
EndProject
3232
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-subscriptions-tests", "unit-tests\graphql-aspnet-subscriptions-tests\graphql-aspnet-subscriptions-tests.csproj", "{6E4A16F5-1B98-412E-9A88-F56301F5D0E4}"
3333
EndProject
34-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-api70", "ancillary-projects\starwars\starwars-api70\starwars-api70.csproj", "{B92A5C91-F88D-4F26-8775-20C72692BD43}"
35-
EndProject
3634
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-tests-common", "unit-tests\graphql-aspnet-tests-common\graphql-aspnet-tests-common.csproj", "{3CB086E3-5E7B-438B-9A95-AEA264009521}"
3735
EndProject
3836
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-api80", "ancillary-projects\starwars\starwars-api80\starwars-api80.csproj", "{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}"
@@ -70,10 +68,6 @@ Global
7068
{6E4A16F5-1B98-412E-9A88-F56301F5D0E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7169
{6E4A16F5-1B98-412E-9A88-F56301F5D0E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
7270
{6E4A16F5-1B98-412E-9A88-F56301F5D0E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
73-
{B92A5C91-F88D-4F26-8775-20C72692BD43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
74-
{B92A5C91-F88D-4F26-8775-20C72692BD43}.Debug|Any CPU.Build.0 = Debug|Any CPU
75-
{B92A5C91-F88D-4F26-8775-20C72692BD43}.Release|Any CPU.ActiveCfg = Release|Any CPU
76-
{B92A5C91-F88D-4F26-8775-20C72692BD43}.Release|Any CPU.Build.0 = Release|Any CPU
7771
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7872
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Debug|Any CPU.Build.0 = Debug|Any CPU
7973
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -96,7 +90,6 @@ Global
9690
{5F6EBAF4-B5EB-4DBD-8F51-17BBC2E8984D} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
9791
{5DE081AA-494A-4377-B2CA-6952715D513D} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
9892
{6E4A16F5-1B98-412E-9A88-F56301F5D0E4} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
99-
{B92A5C91-F88D-4F26-8775-20C72692BD43} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
10093
{3CB086E3-5E7B-438B-9A95-AEA264009521} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
10194
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
10295
{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}

‎src/graphql-aspnet/Attributes/MutationAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/Attributes/MutationAttribute.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace GraphQL.AspNet.Attributes
1111
{
1212
using System;
1313
using System.Linq;
14-
using GraphQL.AspNet.Common.Extensions;
1514
using GraphQL.AspNet.Execution;
1615
using GraphQL.AspNet.Interfaces.Schema;
1716

@@ -101,15 +100,15 @@ public MutationAttribute(string template, Type returnType, params Type[] additio
101100
/// </summary>
102101
/// <param name="template">The template naming scheme to use to generate a graph field from this method.</param>
103102
/// <param name="unionTypeName">Name of the union type.</param>
104-
/// <param name="unionTypeA">The first of two required types to include in the union.</param>
103+
/// <param name="firstUnionType">The first of two required types to include in the union.</param>
105104
/// <param name="additionalUnionTypes">Any additional union types.</param>
106-
public MutationAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
105+
public MutationAttribute(string template, string unionTypeName, Type firstUnionType, params Type[] additionalUnionTypes)
107106
: base(
108107
false,
109108
ItemPathRoots.Mutation,
110109
template,
111110
unionTypeName,
112-
(new Type[] { unionTypeA }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
111+
(new Type[] { firstUnionType }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
113112
{
114113
}
115114
}

‎src/graphql-aspnet/Attributes/MutationRootAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/Attributes/MutationRootAttribute.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace GraphQL.AspNet.Attributes
1111
{
1212
using System;
1313
using System.Linq;
14-
using GraphQL.AspNet.Common.Extensions;
1514
using GraphQL.AspNet.Execution;
1615
using GraphQL.AspNet.Interfaces.Schema;
1716

@@ -100,15 +99,15 @@ public MutationRootAttribute(string template, Type returnType, params Type[] add
10099
/// </summary>
101100
/// <param name="template">The template naming scheme to use to generate a graph field from this method.</param>
102101
/// <param name="unionTypeName">Name of the union type.</param>
103-
/// <param name="unionTypeA">The first of two required types to include in the union.</param>
102+
/// <param name="firstUnionType">The first of two required types to include in the union.</param>
104103
/// <param name="additionalUnionTypes">Any additional union types.</param>
105-
public MutationRootAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
104+
public MutationRootAttribute(string template, string unionTypeName, Type firstUnionType, params Type[] additionalUnionTypes)
106105
: base(
107106
true,
108107
ItemPathRoots.Mutation,
109108
template,
110109
unionTypeName,
111-
(new Type[] { unionTypeA }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
110+
(new Type[] { firstUnionType }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
112111
{
113112
}
114113
}

‎src/graphql-aspnet/Attributes/QueryAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/Attributes/QueryAttribute.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace GraphQL.AspNet.Attributes
1111
{
1212
using System;
1313
using System.Linq;
14-
using GraphQL.AspNet.Common.Extensions;
1514
using GraphQL.AspNet.Execution;
1615
using GraphQL.AspNet.Interfaces.Schema;
1716

@@ -101,15 +100,15 @@ public QueryAttribute(string template, Type returnType, params Type[] additional
101100
/// </summary>
102101
/// <param name="template">The template naming scheme to use to generate a graph field from this method.</param>
103102
/// <param name="unionTypeName">Name of the union type.</param>
104-
/// <param name="unionTypeA">The first type to include in the union.</param>
103+
/// <param name="firstUnionType">The first type to include in the union.</param>
105104
/// <param name="additionalUnionTypes">Any additional union types to include.</param>
106-
public QueryAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
105+
public QueryAttribute(string template, string unionTypeName, Type firstUnionType, params Type[] additionalUnionTypes)
107106
: base(
108107
false,
109108
ItemPathRoots.Query,
110109
template,
111110
unionTypeName,
112-
(new Type[] { unionTypeA }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
111+
(new Type[] { firstUnionType }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())
113112
{
114113
}
115114
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.