trouble implementing schema 'extends'

Oct 6, 2010 at 12:33 AM

 

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": "foo.bar.fu" }

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

 

 

Oct 6, 2010 at 12:39 AM

I read the source a little closer:

Set .Extends to a new JsonSchema with .Id = "foo.bar.fu"

 

Why is there no documentation? 8-\