Skip to content

fix: deprecated API marking + stop auto-populating Try It body fields#3153

Open
sakshamarora-arch wants to merge 1 commit into
LambdaTest:stagefrom
sakshamarora-arch:fix/api-ref-deprecated-stage
Open

fix: deprecated API marking + stop auto-populating Try It body fields#3153
sakshamarora-arch wants to merge 1 commit into
LambdaTest:stagefrom
sakshamarora-arch:fix/api-ref-deprecated-stage

Conversation

@sakshamarora-arch

Copy link
Copy Markdown
Contributor

Summary

  • Mark deprecated API endpoints with strikethrough + "Deprecated" badge in sidebar
  • Show warning banner on deprecated endpoint detail page
  • Hide "Try It" button for deprecated endpoints
  • Stop pre-filling body fields (tags, objective, etc.) with example values — form fields now show grey placeholder text
  • Remove example fallbacks from buildCurl and handleSend so only user-typed values are sent/shown

Test plan

  • Verify deprecated endpoints show strikethrough + badge in sidebar
  • Verify deprecated endpoint detail page shows warning banner and no Try It button
  • Open Try It for Create Test Run — body fields should show "enter fieldname" placeholders
  • Curl on right should only show fields the user typed, not auto-populated examples
  • Send API call with empty body fields — they should NOT be included in the request
  • Verify boolean/array type casting still works (coerceBodyValue preserved)

🤖 Generated with Claude Code

buildCurl and handleSend were falling back to raw spec examples for
empty body fields, causing tags/objective/etc to be sent even when
the user didn't fill them. Now only user-typed values are included.
coerceBodyValue is preserved for proper type casting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant