Specifying multiple Optional constraints

Hi,

Out of curiosity, why are we only able to specify one optional 
constraint at a time? Meaning, why:

{
  "audio": false,
  "video": {
   "mandatory": {
    "maxWidth": 1920,
    "maxHeight": 1080
   },
   "optional": [
    {
     "minWidth": 1920
    },
    {
     "minHeight": 1080
    }
   ]
  }
}

instead of:

{
  "audio": false,
  "video": {
   "mandatory": {
    "maxWidth": 1920,
    "maxHeight": 1080
   },
   "optional": [
    {
     "minWidth": 1920,
     "minHeight": 1080
    }
   ]
  }
}


Meaning, I don't necessarily want a minWidth of 1920 unless I also get 
1080 at the same time. I don't think I can specify this using the 
existing specification.

Thanks,
Gili

Received on Friday, 8 November 2013 15:32:34 UTC