Skip to content

fix: remove x-codeSamples so playground examples update live (#1015) (backport to release/1.16.0) - #1016

Merged
RiskeyL merged 1 commit into
release/1.16.0from
backport/release/1.16.0/pr-1015
Sep 1, 2026
Merged

fix: remove x-codeSamples so playground examples update live (#1015) (backport to release/1.16.0)#1016
RiskeyL merged 1 commit into
release/1.16.0from
backport/release/1.16.0/pr-1015

Conversation

@RiskeyL

@RiskeyL RiskeyL commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to release/1.16.0:

Hand-written x-codeSamples blocks on 11 endpoints replaced Mintlify's auto-generated request samples with static cURL, so the playground ignored typed values and offered no other language tabs. Headless-browser tests confirmed autogen now covers every case they were added for: multipart renders --form samples and typed values appear live in all snippet languages.

Remove all 33 blocks (en/zh/ja), invert the lint guard to flag any x-codeSamples occurrence, rewrite the spec-conventions rule, add a curl -N tip to the SSE streaming guide (the only content the removed samples uniquely carried), and link the guide from the Stream Workflow Events description.

(cherry picked from commit 236fcaa)
Copilot AI lite review requested due to automatic review settings September 1, 2026 05:18
@RiskeyL RiskeyL self-assigned this Sep 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the “remove x-codeSamples so playground examples update live” change set to release/1.16.0, ensuring Mintlify’s API playground uses schema-driven, live-updating, multi-language autogenerated request snippets instead of static operation-level overrides.

Changes:

  • Removed all remaining OpenAPI x-codeSamples operation extensions in the Service API specs (en/zh/ja) and linked the SSE streaming guide from the workflow-events streaming operation description.
  • Added an SSE guide tip in en/zh/ja documenting curl -N (--no-buffer) for real-time event printing.
  • Updated lint_specs.py to flag any x-codeSamples occurrence to prevent reintroduction, and updated the spec conventions reference accordingly.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
zh/api-reference/openapi_service.json Removes x-codeSamples overrides and adds an inline link to the SSE streaming guide for workflow event streaming.
zh/api-reference/guides/streaming.mdx Adds a Tip documenting curl -N for SSE testing.
tools/api-pipeline/lint_specs.py Changes linting to flag any x-codeSamples presence (ban static samples).
ja/api-reference/openapi_service.json Removes x-codeSamples overrides and adds an inline link to the SSE streaming guide for workflow event streaming.
ja/api-reference/guides/streaming.mdx Adds a Tip documenting curl -N for SSE testing.
en/api-reference/openapi_service.json Removes x-codeSamples overrides and adds an inline link to the SSE streaming guide for workflow event streaming.
en/api-reference/guides/streaming.mdx Adds a Tip documenting curl -N for SSE testing.
.claude/skills/dify-docs-api-reference/references/spec-conventions.md Updates internal spec conventions to prohibit x-codeSamples and point to the streaming guide for SSE curl mechanics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@RiskeyL
RiskeyL merged commit 8261a00 into release/1.16.0 Sep 1, 2026
5 checks passed
@RiskeyL
RiskeyL deleted the backport/release/1.16.0/pr-1015 branch September 1, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants