Skip to content

Commit

Permalink
Fix deserialization of container classes (#8087)
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd authored and github-actions[bot] committed Apr 5, 2024
1 parent 86f46bc commit 550b110
Show file tree
Hide file tree
Showing 54 changed files with 0 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Aggregation' from the response.");
}

reader.Read();
var result = new Aggregation(variantNameValue, variantValue);
result.Aggregations = aggregationsValue;
result.Meta = metaValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response.");
}

reader.Read();
var result = new InferenceConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ public override FieldSuggester Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FieldSuggester' from the response.");
}

reader.Read();
var result = new FieldSuggester(variantNameValue, variantValue);
result.Prefix = prefixValue;
result.Regex = regexValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override SmoothingModel Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SmoothingModel' from the response.");
}

reader.Read();
var result = new SmoothingModel(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override IndexModifyDataStreamAction Read(ref Utf8JsonReader reader, Type
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexModifyDataStreamAction' from the response.");
}

reader.Read();
var result = new IndexModifyDataStreamAction(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override IndexUpdateAliasesAction Read(ref Utf8JsonReader reader, Type ty
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexUpdateAliasesAction' from the response.");
}

reader.Read();
var result = new IndexUpdateAliasesAction(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response.");
}

reader.Read();
var result = new InferenceConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Processor' from the response.");
}

reader.Read();
var result = new Processor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override DataframeAnalysis Read(ref Utf8JsonReader reader, Type typeToCon
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysis' from the response.");
}

reader.Read();
var result = new DataframeAnalysis(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public override DataframeAnalysisFeatureProcessor Read(ref Utf8JsonReader reader
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysisFeatureProcessor' from the response.");
}

reader.Read();
var result = new DataframeAnalysisFeatureProcessor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override DataframeEvaluation Read(ref Utf8JsonReader reader, Type typeToC
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeEvaluation' from the response.");
}

reader.Read();
var result = new DataframeEvaluation(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public override InferenceConfigCreate Read(ref Utf8JsonReader reader, Type typeT
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigCreate' from the response.");
}

reader.Read();
var result = new InferenceConfigCreate(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public override InferenceConfigUpdate Read(ref Utf8JsonReader reader, Type typeT
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigUpdate' from the response.");
}

reader.Read();
var result = new InferenceConfigUpdate(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override Preprocessor Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Preprocessor' from the response.");
}

reader.Read();
var result = new Preprocessor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToCo
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'TokenizationConfig' from the response.");
}

reader.Read();
var result = new TokenizationConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public override FunctionScore Read(ref Utf8JsonReader reader, Type typeToConvert
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FunctionScore' from the response.");
}

reader.Read();
var result = new FunctionScore(variantNameValue, variantValue);
result.Filter = filterValue;
result.Weight = weightValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public override Intervals Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Intervals' from the response.");
}

reader.Read();
var result = new Intervals(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public override IntervalsFilter Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsFilter' from the response.");
}

reader.Read();
var result = new IntervalsFilter(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public override IntervalsQuery Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsQuery' from the response.");
}

reader.Read();
var result = new IntervalsQuery(variantNameValue, variantValue);
result.Boost = boostValue;
result.QueryName = queryNameValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public override PinnedQuery Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'PinnedQuery' from the response.");
}

reader.Read();
var result = new PinnedQuery(variantNameValue, variantValue);
result.Boost = boostValue;
result.Organic = organicValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,6 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Query' from the response.");
}

reader.Read();
var result = new Query(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public override SpanQuery Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SpanQuery' from the response.");
}

reader.Read();
var result = new SpanQuery(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public override QueryVectorBuilder Read(ref Utf8JsonReader reader, Type typeToCo
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'QueryVectorBuilder' from the response.");
}

reader.Read();
var result = new QueryVectorBuilder(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public override Rank Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSer
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Rank' from the response.");
}

reader.Read();
var result = new Rank(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public override PivotGroupBy Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'PivotGroupBy' from the response.");
}

reader.Read();
var result = new PivotGroupBy(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public override RetentionPolicy Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'RetentionPolicy' from the response.");
}

reader.Read();
var result = new RetentionPolicy(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public override Sync Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSer
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Sync' from the response.");
}

reader.Read();
var result = new Sync(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Aggregation' from the response.");
}

reader.Read();
var result = new Aggregation(variantNameValue, variantValue);
result.Aggregations = aggregationsValue;
result.Meta = metaValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response.");
}

reader.Read();
var result = new InferenceConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ public override FieldSuggester Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FieldSuggester' from the response.");
}

reader.Read();
var result = new FieldSuggester(variantNameValue, variantValue);
result.Prefix = prefixValue;
result.Regex = regexValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override SmoothingModel Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SmoothingModel' from the response.");
}

reader.Read();
var result = new SmoothingModel(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override IndexModifyDataStreamAction Read(ref Utf8JsonReader reader, Type
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexModifyDataStreamAction' from the response.");
}

reader.Read();
var result = new IndexModifyDataStreamAction(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override IndexUpdateAliasesAction Read(ref Utf8JsonReader reader, Type ty
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexUpdateAliasesAction' from the response.");
}

reader.Read();
var result = new IndexUpdateAliasesAction(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response.");
}

reader.Read();
var result = new InferenceConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Processor' from the response.");
}

reader.Read();
var result = new Processor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override DataframeAnalysis Read(ref Utf8JsonReader reader, Type typeToCon
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysis' from the response.");
}

reader.Read();
var result = new DataframeAnalysis(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public override DataframeAnalysisFeatureProcessor Read(ref Utf8JsonReader reader
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysisFeatureProcessor' from the response.");
}

reader.Read();
var result = new DataframeAnalysisFeatureProcessor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override DataframeEvaluation Read(ref Utf8JsonReader reader, Type typeToC
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeEvaluation' from the response.");
}

reader.Read();
var result = new DataframeEvaluation(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public override InferenceConfigCreate Read(ref Utf8JsonReader reader, Type typeT
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigCreate' from the response.");
}

reader.Read();
var result = new InferenceConfigCreate(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public override InferenceConfigUpdate Read(ref Utf8JsonReader reader, Type typeT
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigUpdate' from the response.");
}

reader.Read();
var result = new InferenceConfigUpdate(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public override Preprocessor Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Preprocessor' from the response.");
}

reader.Read();
var result = new Preprocessor(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToCo
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'TokenizationConfig' from the response.");
}

reader.Read();
var result = new TokenizationConfig(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public override FunctionScore Read(ref Utf8JsonReader reader, Type typeToConvert
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FunctionScore' from the response.");
}

reader.Read();
var result = new FunctionScore(variantNameValue, variantValue);
result.Filter = filterValue;
result.Weight = weightValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public override Intervals Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Intervals' from the response.");
}

reader.Read();
var result = new Intervals(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public override IntervalsFilter Read(ref Utf8JsonReader reader, Type typeToConve
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsFilter' from the response.");
}

reader.Read();
var result = new IntervalsFilter(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public override IntervalsQuery Read(ref Utf8JsonReader reader, Type typeToConver
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsQuery' from the response.");
}

reader.Read();
var result = new IntervalsQuery(variantNameValue, variantValue);
result.Boost = boostValue;
result.QueryName = queryNameValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public override PinnedQuery Read(ref Utf8JsonReader reader, Type typeToConvert,
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'PinnedQuery' from the response.");
}

reader.Read();
var result = new PinnedQuery(variantNameValue, variantValue);
result.Boost = boostValue;
result.Organic = organicValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,6 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Query' from the response.");
}

reader.Read();
var result = new Query(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public override SpanQuery Read(ref Utf8JsonReader reader, Type typeToConvert, Js
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SpanQuery' from the response.");
}

reader.Read();
var result = new SpanQuery(variantNameValue, variantValue);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public override QueryVectorBuilder Read(ref Utf8JsonReader reader, Type typeToCo
throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'QueryVectorBuilder' from the response.");
}

reader.Read();
var result = new QueryVectorBuilder(variantNameValue, variantValue);
return result;
}
Expand Down
Loading

0 comments on commit 550b110

Please sign in to comment.