title: Response Model Schema is coming as empty object in Swagger - C# | Swashbuckle
body: <p>This is my API:</p>
  <pre><code>/// &lt;summary&gt;
          /// Gets activity logs.
          /// &lt;/summary&gt;
          /// &lt;param name=&quot;locationId&quot;&gt;Location id.&lt;/param&gt;
          /// &lt;param name=&quot;filter&quot;&gt;Activity log filter options.&lt;/param&gt;
          [ResponseType(typeof(ActivityLogResponse))]
          public async Task&lt;HttpResponseMessage&gt; FetchActivityLogs(int locationId, ActivityLogFilterOptions filter)
          {
              try
              {
                  var response = await _activityLogLogic.GetActivityLogs(CHIdentity.User, locationId, filter);
                  return Request.CreateResponse(HttpStatusCode.OK, response);
              }
              catch (HttpRequestException ex)
              {
                  return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message + &quot;\n&quot; + ex.InnerException.Message);
              }
              catch (Exception ex)
              {
                  return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);
              }
          }
  </code></pre>
  <p>Defination of <code>ActivityLogResponse</code> class:</p>
  <pre><code> public class ActivityLogResponse
      { 
         public List&lt;ActivityLogMessage&gt; ActivityLogs { get; set; }
         Logs { get; set; }
      }
  </code></pre>
  <p>In swagger JSON <em><strong>responses</strong></em> <code>&quot;type&quot;: &quot;object&quot;</code> is coming instead of <code>ActivityLogFilterOptions</code></p>
  <p>See <code>Responses</code> in following Swagger Json:</p>
  <pre><code>    &quot;/api/locations/{locationId}/FetchActivityLogs&quot;: {
          &quot;post&quot;: {
              &quot;tags&quot;: [&quot;ActivityLog&quot;],
              &quot;summary&quot;: &quot;Gets activity logs.&quot;,
              &quot;operationId&quot;: &quot;ActivityLog_FetchActivityLogs&quot;,
              &quot;consumes&quot;: [&quot;application/json&quot;, &quot;text/json&quot;, &quot;application/xml&quot;, &quot;text/xml&quot;, &quot;application/x-www-form-urlencoded&quot;],
              &quot;produces&quot;: [&quot;application/json&quot;, &quot;text/json&quot;, &quot;application/xml&quot;, &quot;text/xml&quot;],
              &quot;parameters&quot;: [{
                      &quot;name&quot;: &quot;locationId&quot;,
                      &quot;in&quot;: &quot;path&quot;,
                      &quot;description&quot;: &quot;Location id.&quot;,
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  }, {
                      &quot;name&quot;: &quot;filter&quot;,
                      &quot;in&quot;: &quot;body&quot;,
                      &quot;description&quot;: &quot;Activity log filter options.&quot;,
                      &quot;required&quot;: true,
                      &quot;schema&quot;: {
                          &quot;$ref&quot;: &quot;#/definitions/ActivityLogFilterOptions&quot;
                      }
                  }
              ],
              &quot;responses&quot;: {
                  &quot;200&quot;: {
                      &quot;description&quot;: &quot;OK&quot;,
                      &quot;schema&quot;: {
                          &quot;type&quot;: &quot;object&quot;
                      }
                  }
              }
          }
      },
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VelDM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VelDM.png" alt="enter image description here" /></a></p>
  <p>How to load <code>ActivityLogFilterOptions</code> here instead of <code>{}</code>?</p>