fsbahman / apidoc-swagger

apidoc and swagger are two nice projects which are focusing on documentation of APIs. This project is a middle tier which tries to bring them together in a sense that it uses apidoc to convert inline documentation to json schema and later convert it to swagger json schmea.
Other
252 stars 129 forks source link

Default values from @apiParam ignored. #17

Open folderol4 opened 8 years ago

folderol4 commented 8 years ago

http://apidocjs.com/#param-api-param

For example:

@apiParam {Number} [age=18] Optional Age with default 18.

The default value shows up as 0 when generating swagger.json. When generating doc with api-doc, the default shows up as 18.

BorisKotlyarov commented 4 years ago

same