{"action":"closed","issue":{"url":"https://api.github.com/repos/fotinakis/swagger-blocks/issues/65","repository_url":"https://api.github.com/repos/fotinakis/swagger-blocks","labels_url":"https://api.github.com/repos/fotinakis/swagger-blocks/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/fotinakis/swagger-blocks/issues/65/comments","events_url":"https://api.github.com/repos/fotinakis/swagger-blocks/issues/65/events","html_url":"https://github.com/fotinakis/swagger-blocks/issues/65","id":169591631,"number":65,"title":"json context","user":{"login":"JensC","id":44529,"avatar_url":"https://avatars.githubusercontent.com/u/44529?v=3","gravatar_id":"","url":"https://api.github.com/users/JensC","html_url":"https://github.com/JensC","followers_url":"https://api.github.com/users/JensC/followers","following_url":"https://api.github.com/users/JensC/following{/other_user}","gists_url":"https://api.github.com/users/JensC/gists{/gist_id}","starred_url":"https://api.github.com/users/JensC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensC/subscriptions","organizations_url":"https://api.github.com/users/JensC/orgs","repos_url":"https://api.github.com/users/JensC/repos","events_url":"https://api.github.com/users/JensC/events{/privacy}","received_events_url":"https://api.github.com/users/JensC/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T11:57:59Z","updated_at":"2016-08-06T14:43:50Z","closed_at":"2016-08-06T14:43:50Z","body":"Hi,\r\nI am pretty new to swagger and swagger blocks and this might not be an issue after all - so I hope that you do not get too angry with me.\r\nI am using a parameter definition in swagger-blocks for a Rails api like that:\r\n```\r\n  swagger_path '/users/password' do\r\n    operation :post do\r\n      key :description, 'Request an rest password email.'\r\n      key :tags, ['Reset Password']\r\n      key :operationId, 'create'\r\n\r\n      parameter do\r\n        key :name, :user\r\n        key :in, :body\r\n        key :description, 'E-Mail address'\r\n        key :type, :object\r\n        schema do\r\n          key :'$ref', :EmailParams\r\n        end\r\n      end\r\n...\r\n  swagger_schema :EmailParams do\r\n    key :required, [:email]\r\n    property :email do\r\n      key :type, :string\r\n      key :description, 'E-Mail address'\r\n    end\r\n  end\r\n\r\n```\r\nNext I am using swagger-ui to create a POST and I get:\r\n```\r\nStarted POST \"/api/v1/users/password\" for ::1 at 2016-08-05 13:42:57 +0200\r\nProcessing by Api::V1::PasswordsController#create as JSON\r\n  Parameters: {\"email\"=>\"string\", \"password\"=>{\"email\"=>\"string\"}}\r\n```\r\nHowever I need to have\r\n```\r\n  Parameters: {\"email\"=>\"string\", \"user\"=>{\"email\"=>\"string\"}}\r\n```\r\nI did not find any way to accomplish that. Am I doing something wrong or did I forgot any setting??\r\nThanks in advance\r\n"}}
{"actor":{"display_login":"fotinakis"}}