@@ -38,18 +38,18 @@ public sealed partial class NodeAllocationExplanationConverter : System.Text.Jso
3838 public override Elastic . Clients . Elasticsearch . Cluster . NodeAllocationExplanation Read ( ref System . Text . Json . Utf8JsonReader reader , System . Type typeToConvert , System . Text . Json . JsonSerializerOptions options )
3939 {
4040 reader . ValidateToken ( System . Text . Json . JsonTokenType . StartObject ) ;
41- LocalJsonValue < System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > > propDeciders = default ;
41+ LocalJsonValue < System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ? > propDeciders = default ;
4242 LocalJsonValue < System . Collections . Generic . IReadOnlyDictionary < string , string > > propNodeAttributes = default ;
4343 LocalJsonValue < Elastic . Clients . Elasticsearch . Cluster . Decision > propNodeDecision = default ;
4444 LocalJsonValue < string > propNodeId = default ;
4545 LocalJsonValue < string > propNodeName = default ;
4646 LocalJsonValue < System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . NodeRole > > propRoles = default ;
4747 LocalJsonValue < Elastic . Clients . Elasticsearch . Cluster . AllocationStore ? > propStore = default ;
4848 LocalJsonValue < string > propTransportAddress = default ;
49- LocalJsonValue < int > propWeightRanking = default ;
49+ LocalJsonValue < int ? > propWeightRanking = default ;
5050 while ( reader . Read ( ) && reader . TokenType is System . Text . Json . JsonTokenType . PropertyName )
5151 {
52- if ( propDeciders . TryReadProperty ( ref reader , options , PropDeciders , static System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ( ref System . Text . Json . Utf8JsonReader r , System . Text . Json . JsonSerializerOptions o ) => r . ReadCollectionValue < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ( o , null ) ! ) )
52+ if ( propDeciders . TryReadProperty ( ref reader , options , PropDeciders , static System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ? ( ref System . Text . Json . Utf8JsonReader r , System . Text . Json . JsonSerializerOptions o ) => r . ReadCollectionValue < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ( o , null ) ) )
5353 {
5454 continue ;
5555 }
@@ -89,7 +89,7 @@ public override Elastic.Clients.Elasticsearch.Cluster.NodeAllocationExplanation
8989 continue ;
9090 }
9191
92- if ( propWeightRanking . TryReadProperty ( ref reader , options , PropWeightRanking , null ) )
92+ if ( propWeightRanking . TryReadProperty ( ref reader , options , PropWeightRanking , static int ? ( ref System . Text . Json . Utf8JsonReader r , System . Text . Json . JsonSerializerOptions o ) => r . ReadNullableValue < int > ( o ) ) )
9393 {
9494 continue ;
9595 }
@@ -121,15 +121,15 @@ public override Elastic.Clients.Elasticsearch.Cluster.NodeAllocationExplanation
121121 public override void Write ( System . Text . Json . Utf8JsonWriter writer , Elastic . Clients . Elasticsearch . Cluster . NodeAllocationExplanation value , System . Text . Json . JsonSerializerOptions options )
122122 {
123123 writer . WriteStartObject ( ) ;
124- writer . WriteProperty ( options , PropDeciders , value . Deciders , null , static ( System . Text . Json . Utf8JsonWriter w , System . Text . Json . JsonSerializerOptions o , System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > v ) => w . WriteCollectionValue < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ( o , v , null ) ) ;
124+ writer . WriteProperty ( options , PropDeciders , value . Deciders , null , static ( System . Text . Json . Utf8JsonWriter w , System . Text . Json . JsonSerializerOptions o , System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ? v ) => w . WriteCollectionValue < Elastic . Clients . Elasticsearch . Cluster . AllocationDecision > ( o , v , null ) ) ;
125125 writer . WriteProperty ( options , PropNodeAttributes , value . NodeAttributes , null , static ( System . Text . Json . Utf8JsonWriter w , System . Text . Json . JsonSerializerOptions o , System . Collections . Generic . IReadOnlyDictionary < string , string > v ) => w . WriteDictionaryValue < string , string > ( o , v , null , null ) ) ;
126126 writer . WriteProperty ( options , PropNodeDecision , value . NodeDecision , null , null ) ;
127127 writer . WriteProperty ( options , PropNodeId , value . NodeId , null , null ) ;
128128 writer . WriteProperty ( options , PropNodeName , value . NodeName , null , null ) ;
129129 writer . WriteProperty ( options , PropRoles , value . Roles , null , static ( System . Text . Json . Utf8JsonWriter w , System . Text . Json . JsonSerializerOptions o , System . Collections . Generic . IReadOnlyCollection < Elastic . Clients . Elasticsearch . NodeRole > v ) => w . WriteCollectionValue < Elastic . Clients . Elasticsearch . NodeRole > ( o , v , null ) ) ;
130130 writer . WriteProperty ( options , PropStore , value . Store , null , null ) ;
131131 writer . WriteProperty ( options , PropTransportAddress , value . TransportAddress , null , null ) ;
132- writer . WriteProperty ( options , PropWeightRanking , value . WeightRanking , null , null ) ;
132+ writer . WriteProperty ( options , PropWeightRanking , value . WeightRanking , null , static ( System . Text . Json . Utf8JsonWriter w , System . Text . Json . JsonSerializerOptions o , int ? v ) => w . WriteNullableValue < int > ( o , v ) ) ;
133133 writer . WriteEndObject ( ) ;
134134 }
135135}
0 commit comments