-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Came across reserved-binding-keys page in the docs and thought it needed to be updated to reflect the newest additions.
Another thought I had was that it was tedious for developers to update this page along with the more specialized docs they need to write.
My proposal is that this page be broken up and migrated into the appropriate pages. Alternatively, the page could be gotten rid of in favor of adding ts-docs in the source code to be generated into api-docs.
Details added as of March 12
-
package: core
- the following binding keys do not exist in
corebut inrest, according to the keys.ts (https://github.com/strongloop/loopback-next/blob/action-composition/packages/rest/src/keys.ts)application.apiSpecbindElementgetFromContext
components.${component.name}found inbootandrepository, but notcorecontrollers.${controller.name}found inrest(?)
- the following binding keys do not exist in
-
package:rest
- Under
Rest Sequence Action Binding Keys, should the CONSTANT values of the following names be prefixed withSequenceActions? Looking from: https://github.com/strongloop/loopback-next/blob/master/packages/rest/src/keys.ts- sequence.actions.findRoute
- sequence.actions.invokeMethod
- sequence.actions.logError
- sequence.actions.parseParams
- sequence.actions.reject
- sequence.actions.send
- Under
-
package: openapi-spec
- should be renamed to
openapi-v3? - missing keys: https://github.com/strongloop/loopback-next/blob/master/packages/openapi-v3/src/keys.ts
- should be renamed to
-
package: repository
- Reserved prefixes > extra back-tick for `repositories.*``
- cannot find the 3 binding keys in the code. Did I look at the wrong place or it no longer exist?
-
the following packages do not exist in this page, not sure if this is as expected:
- boot
- build
- cli
- metadata
- openapi-v3-types
- repository-json-schema
-
the
page contentshould be in alphabetical order. Currently they are, except forrest.
Acceptance Criteria
-
for
keys.tsin each package, make sure it has ts annotation documenting the purpose of the key. It should contain information on binding key type and description.- authentication
- boot
- context
- core
- metadata
- openapi-spec-builder
- openapi-v3-types
- openapi-v3
- repository-json-schema
- repository
- rest
-
Edit reserved-binding-keys.md so each package links to the appropriate section for it's reserved binding keys in
apidocs.loopback.io. -
Update the Page describing the process for creating a new
loopback-nextpackage to include a step to update thereserved-binding-keys.mdpage with a link to the reserved keys for the new package.
Example
CoreBindings.APPLICATION_CONFIG
| TYPE | DESCRIPTION |
|---|---|
| ApplicationConfig | Binding key for application configuration |