You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated code for open internally-tagged unions produces incorrect JSON when serialized. An example is when defining token filters on IndexSettings.
varcreateResponse=awaitclient.Indices.CreateAsync("my-new-index", i =>i.Settings(s =>s.Analysis(a =>a.Filter(f =>f.Add("synonym",newTokenFilter(newTokenFilterDefinitions{{"synonym",newSynonymTokenFilter(){SynonymsPath="analysis/synonym.txt"}}}))).Analyzer(a =>a.Custom("my-custom-analyzer", c =>c.Filter(new[]{"stop","synonym"}).Tokenizer("standard"))))));
This is due to the generation of TokenFilterDefinitions as IsADictionary required for this polymorphic type's open nature. This will affect other similarly specified types.
The text was updated successfully, but these errors were encountered:
Generated code for open internally-tagged unions produces incorrect JSON when serialized. An example is when defining token filters on IndexSettings.
The above produces:
We expect:
This is due to the generation of
TokenFilterDefinitions
asIsADictionary
required for this polymorphic type's open nature. This will affect other similarly specified types.The text was updated successfully, but these errors were encountered: