How to add reference to a schema in JsonSchema ?

Jan 8, 2012 at 7:23 PM

* one schema that you reference: 

---- 

    "id": "http://some.where/sub/schema#", 
    "type": "object", 
    "properties": { 
        "p1": { 
            "type": "integer", 
            "minimum": 12 
        } 
    } 


--- * the main schema: ---- 


    "id": "http://path.to/base/schema#", 
    "type": "array", 
    "items": { 
        "extends": { 
            "$ref": "http://some.where/sub/schema#/properties/p1
        }, 
        "divisibleBy": 5 
    } 

 

I do not see a way in the api to achieve this ?  Am i missing something ? If not , how do i work around this problem ?