Passing entity as a param in rest-api does not show the model of the entity in swagger

When passing primitive type parameters I can see required parameters in swagger.

But when passing an entity or object I just get the name I defined in rest-services.xml

<service name="test_CustomerService">
        <method name="RequestForm">
            <param name="reqForm" type="com.company.test.entity.RequestForm"/>
        </method>
</service>

swagger only shows

{
  "reqForm": {}
}

I want to see the entity “RequestForm” fields in swagger. e.g.

{
  "reqForm": {
                     "name": String
                     "id": String
                     }
}

This is to make it easier for frontend developers to know the required fields to be sent from frontend.