@@ -25,6 +25,7 @@ public sealed class ProtectedResourceMetadata
2525 /// </remarks>
2626 [ JsonPropertyName ( "resource" ) ]
2727 [ StringSyntax ( StringSyntaxAttribute . Uri ) ]
28+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
2829 public string ? Resource { get ; set ; }
2930
3031 /// <summary>
@@ -75,6 +76,7 @@ public sealed class ProtectedResourceMetadata
7576 /// </remarks>
7677 [ JsonPropertyName ( "jwks_uri" ) ]
7778 [ StringSyntax ( StringSyntaxAttribute . Uri ) ]
79+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
7880 public string ? JwksUri { get ; set ; }
7981
8082 /// <summary>
@@ -88,6 +90,7 @@ public sealed class ProtectedResourceMetadata
8890 /// OPTIONAL. No default algorithms are implied if this entry is omitted. The value "none" MUST NOT be used.
8991 /// </remarks>
9092 [ JsonPropertyName ( "resource_signing_alg_values_supported" ) ]
93+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
9194 public IList < string > ? ResourceSigningAlgValuesSupported { get ; set ; }
9295
9396 /// <summary>
@@ -98,6 +101,7 @@ public sealed class ProtectedResourceMetadata
98101 /// The value of this field MAY be internationalized.
99102 /// </remarks>
100103 [ JsonPropertyName ( "resource_name" ) ]
104+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
101105 public string ? ResourceName { get ; set ; }
102106
103107 /// <summary>
@@ -112,6 +116,7 @@ public sealed class ProtectedResourceMetadata
112116 /// </remarks>
113117 [ JsonPropertyName ( "resource_documentation" ) ]
114118 [ StringSyntax ( StringSyntaxAttribute . Uri ) ]
119+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
115120 public string ? ResourceDocumentation { get ; set ; }
116121
117122 /// <summary>
@@ -125,6 +130,7 @@ public sealed class ProtectedResourceMetadata
125130 /// </remarks>
126131 [ JsonPropertyName ( "resource_policy_uri" ) ]
127132 [ StringSyntax ( StringSyntaxAttribute . Uri ) ]
133+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
128134 public string ? ResourcePolicyUri { get ; set ; }
129135
130136 /// <summary>
@@ -135,6 +141,7 @@ public sealed class ProtectedResourceMetadata
135141 /// </remarks>
136142 [ JsonPropertyName ( "resource_tos_uri" ) ]
137143 [ StringSyntax ( StringSyntaxAttribute . Uri ) ]
144+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
138145 public string ? ResourceTosUri { get ; set ; }
139146
140147 /// <summary>
@@ -147,6 +154,7 @@ public sealed class ProtectedResourceMetadata
147154 /// OPTIONAL.
148155 /// </remarks>
149156 [ JsonPropertyName ( "tls_client_certificate_bound_access_tokens" ) ]
157+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
150158 public bool ? TlsClientCertificateBoundAccessTokens { get ; set ; }
151159
152160 /// <summary>
@@ -160,6 +168,7 @@ public sealed class ProtectedResourceMetadata
160168 /// OPTIONAL.
161169 /// </remarks>
162170 [ JsonPropertyName ( "authorization_details_types_supported" ) ]
171+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
163172 public IList < string > ? AuthorizationDetailsTypesSupported { get ; set ; }
164173
165174 /// <summary>
@@ -173,6 +182,7 @@ public sealed class ProtectedResourceMetadata
173182 /// OPTIONAL.
174183 /// </remarks>
175184 [ JsonPropertyName ( "dpop_signing_alg_values_supported" ) ]
185+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
176186 public IList < string > ? DpopSigningAlgValuesSupported { get ; set ; }
177187
178188 /// <summary>
@@ -185,6 +195,7 @@ public sealed class ProtectedResourceMetadata
185195 /// OPTIONAL.
186196 /// </remarks>
187197 [ JsonPropertyName ( "dpop_bound_access_tokens_required" ) ]
198+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
188199 public bool ? DpopBoundAccessTokensRequired { get ; set ; }
189200
190201 /// <summary>
0 commit comments