Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1410·apidoc

@apiBody array type does not work well

Author: BoykaZhuCreated Jun 29, 2023Updated Oct 18, 2023

When specifying the array in @apiBody, I cannot see it generated in the example!

 * @apiBody {String} id				  ID.
 * @apiBody {String} name                           Name
 * @apiBody {String} [feat]                           Feature.
 * @apiBody {Number[]} typeList	         Type IDs list. Could be 10001 or 10001,10002.

In generated example body, I cannot see typeList with JSON format: image

  • Version of apidoc: apidoc 0.54.0
  • Operating system (e.g. GNU+Linux/MacOS/Windows): Windows
  • Node version: v14.21.2
  • Browser (e.g. firefox, chrome): Chrome Version 114.0.5735.198 (Official Build) (64-bit)

Source: apidoc/apidoc

View original on GitHubView discussion on GitHub