{"action":"opened","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form/issues/363","repository_url":"https://api.github.com/repos/gcanti/tcomb-form","labels_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/363/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/363/events","html_url":"https://github.com/gcanti/tcomb-form/issues/363","id":180354552,"number":363,"title":"Textarea component doesn't use the `error` message in options","user":{"login":"volkanunsal","id":151600,"avatar_url":"https://avatars.githubusercontent.com/u/151600?v=3","gravatar_id":"","url":"https://api.github.com/users/volkanunsal","html_url":"https://github.com/volkanunsal","followers_url":"https://api.github.com/users/volkanunsal/followers","following_url":"https://api.github.com/users/volkanunsal/following{/other_user}","gists_url":"https://api.github.com/users/volkanunsal/gists{/gist_id}","starred_url":"https://api.github.com/users/volkanunsal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volkanunsal/subscriptions","organizations_url":"https://api.github.com/users/volkanunsal/orgs","repos_url":"https://api.github.com/users/volkanunsal/repos","events_url":"https://api.github.com/users/volkanunsal/events{/privacy}","received_events_url":"https://api.github.com/users/volkanunsal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T17:05:38Z","updated_at":"2016-09-30T17:05:38Z","closed_at":null,"body":"### Version\r\n\r\nTell us which versions you are using:\r\n\r\n- tcomb-form v9.10.?\r\n\r\n### Expected behaviour\r\n\r\nGiven this \r\n\r\n```js\r\nconst onSave = (e) => {\r\n  e.preventDefault()\r\n  console.log(this.refs.form.validate()) \r\n}\r\n\r\nconst Form = () =>  {\r\n  const schema = t.struct({\r\n    the_geom: t.String\r\n  })\r\n\r\n  const options = {\r\n    fields: {\r\n      the_geom: {\r\n        type: 'hidden',\r\n        error: 'Shape is required.'\r\n      }\r\n    }\r\n  }\r\n  return <form onSubmit={onSave}>\r\n    <t.form.Form\r\n      type={schema}\r\n      ref='form'\r\n      options={options}\r\n    />\r\n  </form>\r\n}\r\n\r\n```\r\n\r\nExpected to see this:\r\n\r\n```json\r\n{\r\n  \"errors\": [\r\n    {\r\n      \"message\": \"Shape is required.\",\r\n      \"actual\": null,\r\n      \"path\": [\r\n        \"the_geom\"\r\n      ]\r\n    }\r\n  ],\r\n  \"value\": {\r\n    \"the_geom\": null\r\n  }\r\n}\r\n```\r\n\r\nBut instead got this...\r\n\r\n```json\r\n{\r\n  \"errors\": [\r\n    {\r\n      \"message\": \"Invalid value null supplied to /the_geom: String\",\r\n      \"actual\": null,\r\n      \"path\": [\r\n        \"the_geom\"\r\n      ]\r\n    }\r\n  ],\r\n  \"value\": {\r\n    \"the_geom\": null\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"volkanunsal"}}