{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/125","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/125/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/125/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/125","id":45865862,"number":125,"title":"Walkaround for \"oneOf\" in schema?","user":{"login":"luckylooke","id":3660030,"avatar_url":"https://avatars.githubusercontent.com/u/3660030?v=3","gravatar_id":"","url":"https://api.github.com/users/luckylooke","html_url":"https://github.com/luckylooke","followers_url":"https://api.github.com/users/luckylooke/followers","following_url":"https://api.github.com/users/luckylooke/following{/other_user}","gists_url":"https://api.github.com/users/luckylooke/gists{/gist_id}","starred_url":"https://api.github.com/users/luckylooke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckylooke/subscriptions","organizations_url":"https://api.github.com/users/luckylooke/orgs","repos_url":"https://api.github.com/users/luckylooke/repos","events_url":"https://api.github.com/users/luckylooke/events{/privacy}","received_events_url":"https://api.github.com/users/luckylooke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/enhancement","name":"enhancement","color":"eb6420"},{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-10-15T13:31:00Z","updated_at":"2015-06-16T02:52:54Z","closed_at":"2014-10-17T11:56:04Z","body":"How can I solve if the array can have multiple type of object items?\r\noneOf is not supported :(\r\n\r\n```javascript\r\n{\r\n    \"id\": \"http://some.site.somewhere/entry-schema#\",\r\n    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\r\n    \"description\": \"schema for an fstab entry\",\r\n    \"type\": \"object\",\r\n    \"required\": [ \"storage\" ],\r\n    \"properties\": {\r\n        \"storage\": {\r\n            \"type\": \"object\",\r\n            \"oneOf\": [\r\n                { \"$ref\": \"#/definitions/diskDevice\" },\r\n                { \"$ref\": \"#/definitions/diskUUID\" },\r\n                { \"$ref\": \"#/definitions/nfs\" },\r\n                { \"$ref\": \"#/definitions/tmpfs\" }\r\n            ]\r\n        }\r\n    },\r\n    \"definitions\": {\r\n        \"diskDevice\": {},\r\n        \"diskUUID\": {},\r\n        \"nfs\": {},\r\n        \"tmpfs\": {}\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/112266018","html_url":"https://github.com/Textalk/angular-schema-form/issues/125#issuecomment-112266018","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/125","id":112266018,"user":{"login":"stevezau","id":6075483,"avatar_url":"https://avatars.githubusercontent.com/u/6075483?v=3","gravatar_id":"","url":"https://api.github.com/users/stevezau","html_url":"https://github.com/stevezau","followers_url":"https://api.github.com/users/stevezau/followers","following_url":"https://api.github.com/users/stevezau/following{/other_user}","gists_url":"https://api.github.com/users/stevezau/gists{/gist_id}","starred_url":"https://api.github.com/users/stevezau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevezau/subscriptions","organizations_url":"https://api.github.com/users/stevezau/orgs","repos_url":"https://api.github.com/users/stevezau/repos","events_url":"https://api.github.com/users/stevezau/events{/privacy}","received_events_url":"https://api.github.com/users/stevezau/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T02:52:54Z","updated_at":"2015-06-16T02:52:54Z","body":"Any update on anyOf and oneOf support? Is this something that is being worked on or future roadmap?\r\n\r\nWe are in the middle of designing a webui for https://github.com/Flexget/Flexget. ALL of our configuration is json schema v4 with heavy use of anyOf and oneOf.\r\n\r\nThere are other options such as https://github.com/jsonary-js/jsonary but i'd prefer to use Angular Schema Form as we using Angular for the webui..\r\n\r\nthanks!"}}