-
Notifications
You must be signed in to change notification settings - Fork 13
Update request in docs #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughDocumentation updates across JS SDK and troubleshooting pages: clarifying an inline comment in a cancel-callback JSON example, replacing a placeholder with a full Next.js proof-verification example, consolidating TypeScript interface and log text updates, and a small front-matter wording change. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant API as Next.js API
participant Verifier as verifyProof Service
participant Validator as Backend Validator
Client->>API: POST /api/verify { proofs }
API->>Verifier: verifyProof(proofs)
Verifier-->>API: verificationResult
API->>Validator: isProofValid(verificationResult)
Validator-->>API: valid / invalid
alt valid
API-->>Client: 200 { success: true, data: ... }
else invalid
API-->>Client: 400 { success: false, reason: "invalid proof" }
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@content/docs/js-sdk/preparing-request.mdx`:
- Around line 99-103: The JSON example contains an inline comment that makes the
block invalid JSON (the `"type": "string", // Name of the exception from the
table below` line); remove the inline comment from the fenced block and either
(A) move the explanatory note outside the block (e.g., add a line immediately
after the code block: "Note: `type` is the exception name from the table
below.") or (B) change the fence to `jsonc`/`javascript` if you intend to keep
inline comments, ensuring the `"type"` field and other keys remain valid JSON in
the code block.
| ```json | ||
| { | ||
| "type": "string", | ||
| "type": "string", // Name of the exception from the table below | ||
| "message": "string", | ||
| [key: any]: any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline comment makes the JSON example invalid.
json blocks should be strict JSON; the comment breaks copy‑paste usability. Consider moving the note outside the block or switching the fence to jsonc/javascript if you want inline comments.
✅ Suggested fix (move note outside JSON)
{
- "type": "string", // Name of the exception from the table below
+ "type": "string",
"message": "string",
[key: any]: any
}Add the note right below the block:
Note: `type` is the exception name from the table below.🤖 Prompt for AI Agents
In `@content/docs/js-sdk/preparing-request.mdx` around lines 99 - 103, The JSON
example contains an inline comment that makes the block invalid JSON (the
`"type": "string", // Name of the exception from the table below` line); remove
the inline comment from the fenced block and either (A) move the explanatory
note outside the block (e.g., add a line immediately after the code block:
"Note: `type` is the exception name from the table below.") or (B) change the
fence to `jsonc`/`javascript` if you intend to keep inline comments, ensuring
the `"type"` field and other keys remain valid JSON in the code block.
Description
Testing (ignore for documentation update)
Type of change
Checklist:
Additional Notes:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.