feature request: schema depends on data instance.

33 views
Skip to first unread message

1226...@qq.com

unread,
Nov 17, 2014, 2:01:41 AM11/17/14
to json-schem...@googlegroups.com
Hi all,

    Here are my requirement.There is a schema, eg:

   {
     "title":"sample",
     "type":"object",
     "properties":{
          "price":{
               "type":"integer",
                "minimum":"$priceRange"    //The minimum is not a fix number,but the data from priceRange in data instance.
            }
           "priceRange":{
               "type":"array"
            }
      }
    }

  In this framework,how can I make this function?  Thanks in advance!!


Reply all
Reply to author
Forward
0 new messages