[docs-scanner] Syntax error in backend API code example

Open Beginner friendly
#26,138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
95/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
documentation

Research direction

Open content/manuals/extensions/extensions-sdk/dev/api/backend.md and locate the get method example. Check the snippet's syntax and run any documentation validation available for the repository. Done means the example is valid TypeScript and no longer produces the reported syntax error when copied.

Written by the indexing model from the issue text.

Description

File: content/manuals/extensions/extensions-sdk/dev/api/backend.md

Issue

The code example for the get method has a syntax error - missing closing parenthesis:

ddClient.extension.vm.service
 .get("/some/service")
 .then((value: any) => console.log(value)
Why this matters

Readers who copy this code example will get a syntax error. The missing closing parenthesis after console.log(value) makes this invalid TypeScript/JavaScript.

Suggested fix

Add the missing closing parenthesis:

ddClient.extension.vm.service
 .get("/some/service")
 .then((value: any) => console.log(value))

Found by nightly documentation quality scanner

Dominant language
Markdown
Stars
4.7k
Forks
8.5k
Avg merge
2d 12h
Merged PRs (30d)
104

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/docs

All issues in docker/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.