์๋ ํ์ธ์,
@ApiOperation ์ฃผ์์ responseType ์์ฑ์ ๊ฐ์ฒด ๋ชฉ๋ก์ผ๋ก ์ด๋ป๊ฒ ์ค์ ํ ์ ์์ต๋๊น?
swagger-core 1.2.x์์:
responseClass = "com.yourpackage.YourModel", multiValuedResponse=true
swagger-core 1.3-x์์:
response = YourModel.class, responseContainer="List"
ํ์์ ์ฅ์ ์ ์ ํ ์์ ํ๋ค๋ ๊ฒ์ ๋๋ค.
์๋ ํ์ธ์, ์ ๋ responseContainer = "List"๋ฅผ ์ฌ์ฉํ๊ณ ์์ง๋ง swagger UI์์ List[$ObjectDesc]๋ฅผ ํ์ํ๊ณ ์์ต๋๋ค. ์ด๋ ํ ์ ์? responseContainer="Array"๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ ๋์ ๊ฐ์ ๊ฒฝ์ฐ
@vvicario - ๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ ๋ณ๋์ ๋ฌธ์ ๋ฅผ ์ด์ด์ฃผ์ธ์.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
swagger-core 1.2.x์์:
swagger-core 1.3-x์์:
ํ์์ ์ฅ์ ์ ์ ํ ์์ ํ๋ค๋ ๊ฒ์ ๋๋ค.