{"action":"closed","issue":{"url":"https://api.github.com/repos/emicklei/go-restful/issues/202","labels_url":"https://api.github.com/repos/emicklei/go-restful/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/emicklei/go-restful/issues/202/comments","events_url":"https://api.github.com/repos/emicklei/go-restful/issues/202/events","html_url":"https://github.com/emicklei/go-restful/issues/202","id":66965754,"number":202,"title":"Set Fields of a Data Model to Required","user":{"login":"tortis","id":7891896,"avatar_url":"https://avatars.githubusercontent.com/u/7891896?v=3","gravatar_id":"","url":"https://api.github.com/users/tortis","html_url":"https://github.com/tortis","followers_url":"https://api.github.com/users/tortis/followers","following_url":"https://api.github.com/users/tortis/following{/other_user}","gists_url":"https://api.github.com/users/tortis/gists{/gist_id}","starred_url":"https://api.github.com/users/tortis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tortis/subscriptions","organizations_url":"https://api.github.com/users/tortis/orgs","repos_url":"https://api.github.com/users/tortis/repos","events_url":"https://api.github.com/users/tortis/events{/privacy}","received_events_url":"https://api.github.com/users/tortis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T18:51:27Z","updated_at":"2015-08-07T12:23:26Z","closed_at":"2015-08-07T12:23:26Z","body":"I was unable to find a way to set specific fields in a model definition to required. It seems that when you specify .Reads() that it just treats the whole body as a required parameter.\r\n\r\nThen in the produced documentation I see something like this:\r\n```\r\nmain.User {\r\naddress (object, optional),\r\ncreated (integer, optional),\r\nemail (string, optional),\r\nfirst_name (string, optional),\r\nid (string, optional),\r\nlast_name (string, optional),\r\nmodified (integer, optional),\r\npassword (string, optional),\r\nphone (string, optional),\r\n}\r\n```\r\nWhere all fields are optional.\r\n\r\nIs there some mechanism to set these fields to required individually (even if it is not automatically enforced by go-restful)?\r\n\r\nThanks for the awesome library!"}}