Loopback-next: docs: Missing @param() decorator API Docs

Created on 21 Sep 2017  路  8Comments  路  Source: strongloop/loopback-next

https://apidocs.strongloop.com/@loopback%2fopenapi-v2/v/0.1.0/

The above API Docs is missing documentation for the @param decorator but the docs have documentation for other decorators such as @get(), @post(), etc.

The decorator is documented in code. Seems like the tool generating the Docs is failing to parse it correctly possibly because the decorator is @param which is also reserved for documenting is as well.

Docs blocked bug p1 team-apex

Most helpful comment

All 8 comments

For beta, we have the http://loopback.io/doc/en/lb4/Decorators.html#parameter-decorator section, which provides some detail on how to use the @param decorator.

Until we have a proper fix for the typedoc parsing issue, we should avoid making hacky fills in the regular documentation (or anywhere, really!)

My theory is that param is used for both the decorator function and a namespace (@param.path.string). The same issue happens to inject (@inject and @inject.getter).

Thank you @raymondfeng !
I add a comment here just to remind myself update @param and @requestBody doc in https://github.com/strongloop/loopback-next/pull/1145 when the namespace/function detect issue is fixed.

Was this page helpful?
0 / 5 - 0 ratings