{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/398","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/398/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/398/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/398","id":92349088,"number":398,"title":"Definition Objects Array Enhancement","user":{"login":"dcarrask","id":594532,"avatar_url":"https://avatars.githubusercontent.com/u/594532?v=3","gravatar_id":"","url":"https://api.github.com/users/dcarrask","html_url":"https://github.com/dcarrask","followers_url":"https://api.github.com/users/dcarrask/followers","following_url":"https://api.github.com/users/dcarrask/following{/other_user}","gists_url":"https://api.github.com/users/dcarrask/gists{/gist_id}","starred_url":"https://api.github.com/users/dcarrask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcarrask/subscriptions","organizations_url":"https://api.github.com/users/dcarrask/orgs","repos_url":"https://api.github.com/users/dcarrask/repos","events_url":"https://api.github.com/users/dcarrask/events{/privacy}","received_events_url":"https://api.github.com/users/dcarrask/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T10:54:42Z","updated_at":"2015-11-10T22:48:19Z","closed_at":"2015-11-10T22:48:19Z","body":"Hi there,\r\n\r\nI'm using your package and I would like to suggest an idea. Could it be possible to declare one array object instead of:\r\n\r\n```javascript\r\nquestions:{\r\n\ttype:[Object],\r\n\tminCount: 1,\r\n\tmaxCount: 4,\r\n},\r\n'questions.$.a':{\r\n\ttype: String,\r\n},\r\n'questions.$.b':{\r\n\ttype: String,\r\n},\r\n'questions.$.c':{\r\n\ttype: String,\r\n},\r\n'questions.$.d':{\r\n\ttype: String,\r\n},\r\n'questions.$.answer':{\r\n\ttype: String,\r\n},\r\n```\r\n\r\n... declare nested syntax like this example:\r\n\r\n```javascript\r\nquestions:{\r\n\r\n\ttype:[Object],\r\n\tminCount: 1,\r\n\tmaxCount: 4,\r\n\r\n\telem:{\r\n\t\t'a':{\r\n\t\t\ttype: String,\t\t\r\n\t\t},\r\n\t\t'b':{\r\n\t\t\ttype: String,\t\t\r\n\t\t},\r\n\t\t'c':{\r\n\t\t\ttype: String,\t\t\r\n\t\t},\r\n\t\t'd':{\r\n\t\t\ttype: String,\t\t\r\n\t\t},\r\n\t\t'answer':{\r\n\t\t\ttype: String,\t\t\r\n\t\t},\r\n\t}\r\n\r\n}\r\n```\r\n\r\n'elem' can be anything... It's just a point of view I find it more obvious to understand like this.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/comments/155592589","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/398#issuecomment-155592589","issue_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/398","id":155592589,"user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T22:48:19Z","updated_at":"2015-11-10T22:48:19Z","body":"I prefer the flat structure. If you don't need any advanced SS features, you can write a JSONSchema, which is nested, and then use https://atmospherejs.com/bshamblen/json-simple-schema to convert it to a SS."}}