title: swagger io consume json on post
body: <p>Using swagger editor I created a post call to consume a json object that I want to simply load into a db but when I run the call I get an empty json object.</p>
  
  <p>This is the parameters portion of my json swagger for the post </p>
  
  <pre><code>                "parameters": [
                  {
                      "in": "body",
                      "name": "body",
                      "description": "Add question to collection",
                      "required": true,
                      "schema": { "type" : "object", "additionalProperties" : {}
                      }
                  }
              ],
  </code></pre>
  
  <p>It then creates a "Body" model, but I am not able to see the json that was part of the post:</p>
  
  <pre><code> @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-22T20:49:03.229Z")
  public class Body   {
  
  
  
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      Body body = (Body) o;
      return true;
    }
  
    @Override
    public int hashCode() {
      return Objects.hash();
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class Body {\n");
  
      sb.append("}");
      return sb.toString();
    }
  
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(Object o) {
      if (o == null) {
        return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
  }
  </code></pre>
  
  <p>If I remove the text/json from consume and generated my code again and I still see an issue with the body model and being able to pull in json.
   If you look at the toString method it shows hard coded values, so I dont see how I can pull the json from the post with the post method only taking in the Body and securitycontext.</p>