如何告诉swagger参数dataType是一个对象数组?

时间:2018-01-09 09:10:23

标签: scala playframework-2.0 swagger

我使用@ApiImplicitParams

注释操作方法
new ApiImplicitParam(
    dataType = "Array[Model]", // <- What should I write here?
    paramType = "body",
    name = "body",
    required = true,
    allowMultiple = false,
    value = "The JSON array of messages to be logged.")

[LModel不起作用。

1 个答案:

答案 0 :(得分:2)

您应该能够使用function scrollMagic() { if (!Modernizr.touch) { var controller = new ScrollMagic.Controller({ duration: "200%", }); var panelAnim = new TimelineMax(); panelAnim .from($('.imgPanel'), 1.4, { y: '-50px', autoAlpha: 0, ease: Power1.easeOut }, '-=0.2') var introScene = new ScrollMagic.Scene({ duration: "100%", }) .setTween(panelAnim) .addTo(controller); } } 字段,而不是dataTypeClass

dataType