Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.11.2
-
None
Description
When parsing the Avro Schema with Newtonsoft.Json max depth is limited to 64, the default. It cannot be customized because it's using JObject.Parse that doesn't allow to customize it.
Using JsonConvert could allow to change default MaxDepth
JsonConvert.DefaultSettings = () => { return new JsonSerializerSettings { MaxDepth = 100 }; }; var schema = File.ReadAllText("schema.avsc"); var json = JsonConvert.DeserializeObject<JObject>(schema);
An alternative solution is to configure Json max depth so it corresponds to an Avro schema for a 64 levels depth record.
Attachments
Issue Links
- links to