{"action":"closed","issue":{"url":"https://api.github.com/repos/Kinto/formbuilder/issues/94","repository_url":"https://api.github.com/repos/Kinto/formbuilder","labels_url":"https://api.github.com/repos/Kinto/formbuilder/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/Kinto/formbuilder/issues/94/comments","events_url":"https://api.github.com/repos/Kinto/formbuilder/issues/94/events","html_url":"https://github.com/Kinto/formbuilder/issues/94","id":157866249,"number":94,"title":"Error with JSON schema when submitting form","user":{"login":"leplatrem","id":546692,"avatar_url":"https://avatars.githubusercontent.com/u/546692?v=3","gravatar_id":"","url":"https://api.github.com/users/leplatrem","html_url":"https://github.com/leplatrem","followers_url":"https://api.github.com/users/leplatrem/followers","following_url":"https://api.github.com/users/leplatrem/following{/other_user}","gists_url":"https://api.github.com/users/leplatrem/gists{/gist_id}","starred_url":"https://api.github.com/users/leplatrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leplatrem/subscriptions","organizations_url":"https://api.github.com/users/leplatrem/orgs","repos_url":"https://api.github.com/users/leplatrem/repos","events_url":"https://api.github.com/users/leplatrem/events{/privacy}","received_events_url":"https://api.github.com/users/leplatrem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kinto/formbuilder/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Kinto/formbuilder/milestones/4","html_url":"https://github.com/Kinto/formbuilder/milestones/v1.1","labels_url":"https://api.github.com/repos/Kinto/formbuilder/milestones/4/labels","id":1802172,"number":4,"title":"v1.1","description":"","creator":{"login":"almet","id":67073,"avatar_url":"https://avatars.githubusercontent.com/u/67073?v=3","gravatar_id":"","url":"https://api.github.com/users/almet","html_url":"https://github.com/almet","followers_url":"https://api.github.com/users/almet/followers","following_url":"https://api.github.com/users/almet/following{/other_user}","gists_url":"https://api.github.com/users/almet/gists{/gist_id}","starred_url":"https://api.github.com/users/almet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almet/subscriptions","organizations_url":"https://api.github.com/users/almet/orgs","repos_url":"https://api.github.com/users/almet/repos","events_url":"https://api.github.com/users/almet/events{/privacy}","received_events_url":"https://api.github.com/users/almet/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":5,"state":"open","created_at":"2016-06-01T12:20:33Z","updated_at":"2016-06-07T14:43:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-01T09:50:28Z","updated_at":"2016-06-07T14:43:50Z","closed_at":"2016-06-07T14:43:50Z","body":"Submitted the form creation:\r\n```\r\ncurl 'https://kinto.notmyidea.org/v1/buckets/formbuilder/collections/bec1c15c28d643cd' -X PUT -H 'Host: kinto.notmyidea.org' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'DNT: 1' -H 'Content-Type: application/json' -H 'Authorization: Basic Zm9ybTpiZWMxYzE1YzI4ZDY0M2NkYWNhZDdhZDEyMDE1OTc2MQ==' -H 'Origin: https://www.fourmilieres.net' -H 'Referer: https://www.fourmilieres.net/' -H 'Connection: keep-alive' --data '{\"data\":{\"schema\":{\"type\":\"object\",\"title\":\"Untitled form\",\"description\":\"Enter some description for your form here\",\"properties\":{\"question_1\":{\"type\":\"string\",\"title\":\"Question 1\",\"description\":\"vdvdvd\",\"default\":\"\"}},\"required\":[]},\"uiSchema\":{\"ui:order\":[\"question_1\"],\"question_1\":{\"ui:widget\":\"textarea\",\"editSchema\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"title\":\"Label\"},\"description\":{\"type\":\"string\",\"title\":\"Example value\"},\"required\":{\"type\":\"boolean\"}}}}}},\"permissions\":{\"record:create\":[\"system.Authenticated\"],\"read\":[\"basicauth:14abfdb2b9757f63a0e7e94df0777dc4af558a59846356d70ec73098d82c7451\"]}}'\r\n```\r\n\r\nServer returned 400 complained about `required` list:\r\n```\r\n{\"errno\":107,\"message\":\"data.schema in body: required[] is too short\",\"code\":400,\"details\":[{\"location\":\"body\",\"name\":\"data.schema\",\"description\":\"required[] is too short\"}],\"error\":\"Invalid parameters\"}\r\n```\r\n"}}
{"actor":{"display_login":"almet"}}