{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/132","repository_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form","labels_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/132/comments","events_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/132/events","html_url":"https://github.com/mozilla-services/react-jsonschema-form/pull/132","id":147327358,"number":132,"title":"Handle fixed items arrays","user":{"login":"rhgb","id":1477085,"avatar_url":"https://avatars.githubusercontent.com/u/1477085?v=3","gravatar_id":"","url":"https://api.github.com/users/rhgb","html_url":"https://github.com/rhgb","followers_url":"https://api.github.com/users/rhgb/followers","following_url":"https://api.github.com/users/rhgb/following{/other_user}","gists_url":"https://api.github.com/users/rhgb/gists{/gist_id}","starred_url":"https://api.github.com/users/rhgb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhgb/subscriptions","organizations_url":"https://api.github.com/users/rhgb/orgs","repos_url":"https://api.github.com/users/rhgb/repos","events_url":"https://api.github.com/users/rhgb/events{/privacy}","received_events_url":"https://api.github.com/users/rhgb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-11T06:21:27Z","updated_at":"2016-04-14T12:49:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/pulls/132","html_url":"https://github.com/mozilla-services/react-jsonschema-form/pull/132","diff_url":"https://github.com/mozilla-services/react-jsonschema-form/pull/132.diff","patch_url":"https://github.com/mozilla-services/react-jsonschema-form/pull/132.patch"},"body":"fixed #76 \r\nhandle fixed items arrays:\r\n```json\r\n{\r\n  \"type\": \"array\",\r\n  \"title\": \"List of fixed items\",\r\n  \"items\": [\r\n    {\r\n      \"type\": \"string\",\r\n      \"title\": \"Some text\"\r\n    },\r\n    {\r\n      \"type\": \"number\",\r\n      \"title\": \"A number\"\r\n    }\r\n  ]\r\n}\r\n```\r\nNOTE: According to the [spec](http://json-schema.org/latest/json-schema-validation.html#anchor131), it should be **valid** that form data has less items in fixed array than the schema defined, but it seems hard to find an appropriate UI for this. I'm glad to implement it if there's any reasonable suggestion. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/comments/209923945","html_url":"https://github.com/mozilla-services/react-jsonschema-form/pull/132#issuecomment-209923945","issue_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/132","id":209923945,"user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T12:49:30Z","updated_at":"2016-04-14T12:49:30Z","body":"From my testing, fixed array field error contextualization doesn't work, eg. with this schema:\r\n\r\n```\r\n    \"nestedList\": {\r\n      \"type\": \"array\",\r\n      \"title\": \"Nested list\",\r\n      \"items\": {\r\n        \"type\": \"array\",\r\n        \"title\": \"Inner list\",\r\n        \"items\": {\r\n          \"type\": \"string\",\r\n          \"default\": \"lorem ipsum\",\r\n          \"maxLength\": 3\r\n        }\r\n      }\r\n```\r\n\r\nErrors are only listed at the top of the form, meaning we're probably not properly passing the errorSchema object for these fields."}}