Deserializing $ref and $id

后端 未结 3 477
梦如初夏
梦如初夏 2021-01-07 05:03

So I\'m trying to deserialize an object that has properties: $ref and $id. I have tried going between Dictionary as well as an object where I have specified namingconvention

3条回答
  •  隐瞒了意图╮
    2021-01-07 05:36

    I have the same issue when trying to deserialize a swagger/json schema document. The solution is:

    JsonSerializerSettings settings = new JsonSerializerSettings();
    settings.MetadataPropertyHandling = MetadataPropertyHandling.Ignore;
    

提交回复
热议问题