{"action":"opened","issue":{"url":"https://api.github.com/repos/sensorario/value-object/issues/6","labels_url":"https://api.github.com/repos/sensorario/value-object/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sensorario/value-object/issues/6/comments","events_url":"https://api.github.com/repos/sensorario/value-object/issues/6/events","html_url":"https://github.com/sensorario/value-object/issues/6","id":110423019,"number":6,"title":"Allow parameters, only if others has specific value","user":{"login":"sensorario","id":820248,"avatar_url":"https://avatars.githubusercontent.com/u/820248?v=3","gravatar_id":"","url":"https://api.github.com/users/sensorario","html_url":"https://github.com/sensorario","followers_url":"https://api.github.com/users/sensorario/followers","following_url":"https://api.github.com/users/sensorario/following{/other_user}","gists_url":"https://api.github.com/users/sensorario/gists{/gist_id}","starred_url":"https://api.github.com/users/sensorario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensorario/subscriptions","organizations_url":"https://api.github.com/users/sensorario/orgs","repos_url":"https://api.github.com/users/sensorario/repos","events_url":"https://api.github.com/users/sensorario/events{/privacy}","received_events_url":"https://api.github.com/users/sensorario/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sensorario/value-object/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sensorario/value-object/milestones/3","html_url":"https://github.com/sensorario/value-object/milestones/0.2.0","labels_url":"https://api.github.com/repos/sensorario/value-object/milestones/3/labels","id":1344333,"number":3,"title":"0.2.0","description":null,"creator":{"login":"sensorario","id":820248,"avatar_url":"https://avatars.githubusercontent.com/u/820248?v=3","gravatar_id":"","url":"https://api.github.com/users/sensorario","html_url":"https://github.com/sensorario","followers_url":"https://api.github.com/users/sensorario/followers","following_url":"https://api.github.com/users/sensorario/following{/other_user}","gists_url":"https://api.github.com/users/sensorario/gists{/gist_id}","starred_url":"https://api.github.com/users/sensorario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensorario/subscriptions","organizations_url":"https://api.github.com/users/sensorario/orgs","repos_url":"https://api.github.com/users/sensorario/repos","events_url":"https://api.github.com/users/sensorario/events{/privacy}","received_events_url":"https://api.github.com/users/sensorario/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-10-08T10:48:21Z","updated_at":"2015-10-08T10:48:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-08T10:48:32Z","updated_at":"2015-10-08T10:48:32Z","closed_at":null,"body":"In case of API, a Request could have some allowed parameters. But the presence of a specific value, could remove to allowed others. Example:\r\n\r\n    type=[category|categoryGroup]\r\n    name\r\n    [categoryGroup]\r\n\r\ncategoryGroup is allowed only when type is categoryGroup.\r\n\r\nFor example, a parameter could allow others.\r\n\r\n    ValueObject::allow()\r\n    {\r\n        return [\r\n            'type' => 'category',\r\n            'allow' => 'categoryGroup',\r\n        ];\r\n    }"}}