This project has moved. For the latest updates, please go here.

trouble implementing schema 'extends'

Oct 5, 2010 at 11:33 PM


I am generating schema for a derived type. I have implemented a custom ContractResolver that omits inherited members.

My plan is to null the Type on the derived class and set the Extends but I cannot figure out how to set it so that it emits  "extends" :{ "$ref": "" }

The property will only accept a JsonSchema. How to I construct a JsonSchema that will emit this JSON?



Oct 5, 2010 at 11:39 PM

I read the source a little closer:

Set .Extends to a new JsonSchema with .Id = ""


Why is there no documentation? 8-\