From 0ce7715e39c54d73ce0fa8b12632c701e1d2a2b7 Mon Sep 17 00:00:00 2001 From: Husqvik Date: Sat, 4 Feb 2023 21:14:18 +0100 Subject: [PATCH] #126 include even unknown fields into deserialized schema --- src/GraphQlClientGenerator/GraphQlIntrospectionSchema.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GraphQlClientGenerator/GraphQlIntrospectionSchema.cs b/src/GraphQlClientGenerator/GraphQlIntrospectionSchema.cs index 902eb46..88c19a5 100644 --- a/src/GraphQlClientGenerator/GraphQlIntrospectionSchema.cs +++ b/src/GraphQlClientGenerator/GraphQlIntrospectionSchema.cs @@ -104,6 +104,9 @@ public abstract class GraphQlTypeBase public GraphQlTypeKind Kind { get; set; } public string Name { get; set; } + + [JsonExtensionData] + public IDictionary Extensions { get; } = new Dictionary(StringComparer.Ordinal); } public interface IGraphQlMember