{"action":"closed","issue":{"url":"https://api.github.com/repos/dry-rb/dry-validation/issues/119","repository_url":"https://api.github.com/repos/dry-rb/dry-validation","labels_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/119/comments","events_url":"https://api.github.com/repos/dry-rb/dry-validation/issues/119/events","html_url":"https://github.com/dry-rb/dry-validation/issues/119","id":152009944,"number":119,"title":"Handling of non-string values in Form schemas","user":{"login":"rx","id":75859,"avatar_url":"https://avatars.githubusercontent.com/u/75859?v=3","gravatar_id":"","url":"https://api.github.com/users/rx","html_url":"https://github.com/rx","followers_url":"https://api.github.com/users/rx/followers","following_url":"https://api.github.com/users/rx/following{/other_user}","gists_url":"https://api.github.com/users/rx/gists{/gist_id}","starred_url":"https://api.github.com/users/rx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rx/subscriptions","organizations_url":"https://api.github.com/users/rx/orgs","repos_url":"https://api.github.com/users/rx/repos","events_url":"https://api.github.com/users/rx/events{/privacy}","received_events_url":"https://api.github.com/users/rx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dry-rb/dry-validation/labels/discussion","name":"discussion","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-04-30T05:00:03Z","updated_at":"2016-07-01T22:38:38Z","closed_at":"2016-07-01T22:38:38Z","body":"I ran into this tonight. (The last couple times @solnic  just pointed out something obvious and I was on my way.) This was on v0.7.4\r\n\r\n_Updated using new dsl syntax_\r\n```\r\nrequire 'dry-validation'\r\n\r\ndescribe \"Bad Validation Spec\" do\r\n  subject {\r\n    Dry::Validation.Form do\r\n      required(:id).filled\r\n      required(:foo).schema do\r\n        optional(:bar).maybe\r\n        optional(:goo).maybe\r\n        optional(:zurb).maybe # comment this line out and it works\r\n      end\r\n    end\r\n  }\r\n\r\n  let(:params) {\r\n    {id: 92,\r\n     foo: {\r\n         'id' => nil,\r\n         'bar' => 'new name',\r\n         'goo' => 'skuU',\r\n         'zurb' => 3\r\n         }\r\n    }\r\n  }\r\n\r\n  it {\r\n    expect(subject.call(params)[:foo].key?('id')).to eq(false)\r\n  }\r\nend\r\n```"}}
{"actor":{"display_login":"solnic"}}