You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
If the dataType value is not of the basic types, spray-swagger will try and find the type in the modelTypes sequence. Refer to swagger-core for other attribute information.
But I haven't found where to set those modelTypes, I presume would look like this:
modelTypes =Seq(typeOf[Meeting])
The text was updated successfully, but these errors were encountered:
I think(?) this is just documentation that needs to be updated. In our experience, swagger-core will attempt to load and introspect on the models for you., so if you do:
@ApiImplicitParams(Array(
new ApiImplicitParam(name="deviceInfo", required=true, dataType="com.example.models.DeviceInfo", paramType="body", value="Info about the device sending the event.")
))
the DeviceInfo model, complete with schema, will show up in your swagger documentation. (Note that we had to use the fully-qualified path for the dataType param to get it to show up consistently.)
Right! it works, yeah the “trick” was the fully qualified name, and apparently it won’t work with case class inside other objects, but I knew that
thanks!
Miguel A. Iglesias
about.me/caente
On Fri, Dec 19, 2014 at 4:51 PM, Joshua Conner [email protected]
wrote:
I think(?) this is just documentation that needs to be updated. In our experience, swagger-core will attempt to load and introspect on the models for you., so if you do:
@ApiImplicitParams(Array(
new ApiImplicitParam(name="deviceInfo", required=true, dataType="com.example.models.DeviceInfo", paramType="body", value="Info about the device sending the event.")
))
the DeviceInfo model, complete with schema, will show up in your swagger documentation. (Note that we had to use the fully-qualified path for the dataType param to get it to show up consistently.)
Reply to this email directly or view it on GitHub: #46 (comment)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The README says:
But I haven't found where to set those modelTypes, I presume would look like this:
The text was updated successfully, but these errors were encountered: