diff --git a/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs b/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs index 80bed64..f4bbc1c 100644 --- a/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs +++ b/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs @@ -18,7 +18,7 @@ public ScalarTemplate(GraphqlType scalarType, string namespaceName) } private string className => scalarType.Name; - private string classDescription => scalarType.Description; + private string classDescription => scalarType.Description ?? className;