Skip to content

feat(api): enable OpenAPI by default - #46606

Merged
wylswz merged 1 commit into
mainfrom
feat/openapi-enabled-by-default
Nov 17, 2026
Merged

wylswz merged 1 commit into
mainfrom
feat/openapi-enabled-by-default

Conversation

@wylswz

@wylswz wylswz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Part of #46612

Supersedes #46603 (moved to a stacked branch).

Self-hosted CE did not enable OPENAPI_ENABLED by default, yet the account page still lets users create personal access tokens. Every PAT call then returned 404 because the /openapi/v1 blueprint was not registered. Turn OPENAPI_ENABLED on by default and update the api.defaults comment. Set OPENAPI_ENABLED=false to disable it.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

From Devin

@github-actions github-actions Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 17, 2026
@wylswz
wylswz added this pull request to stack #46611 November 17, 2026 12:00
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 86.70% 86.70% 0.00%
Strict coverage 86.36% 86.36% 0.00%
Typed symbols 94,232 94,232 0
Untyped symbols 14,508 14,508 0
Modules 4605 4605 0

@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.78%. Comparing base (17ebebf) to head (2751c30).

❌ Your project check has failed because the head coverage (42.60%) is below the adjusted base coverage (87.37%). You can increase the head coverage or adjust the Removed Code Behavior.

Additional details and impacted files
@@                       Coverage Diff                        @@
##           fix/pat-hide-knowledge-base   #46606       +/-   ##
================================================================
- Coverage                        89.46%   78.78%   -10.69%     
================================================================
  Files                             6438     4392     -2046     
  Lines                           405210   322048    -83162     
  Branches                         81522    53722    -27800     
================================================================
- Hits                            362539   253716   -108823     
- Misses                           36269    61928    +25659     
- Partials                          6402     6404        +2     
Flag Coverage Δ
api 90.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wylswz
wylswz force-pushed the feat/openapi-enabled-by-default branch from 4767621 to 2751c30 Compare November 17, 2026 13:14
@wylswz
wylswz added this pull request to the merge queue Nov 17, 2026
@wylswz
wylswz removed this pull request from the merge queue due to a manual request Nov 17, 2026
Base automatically changed from fix/pat-hide-knowledge-base to main November 17, 2026 13:44
…the box

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@wylswz
wylswz force-pushed the feat/openapi-enabled-by-default branch from 2751c30 to 03e3146 Compare November 17, 2026 13:44
@wylswz
wylswz enabled stacked auto-merge November 17, 2026 13:44
@wylswz
wylswz added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit d3c8338 Nov 17, 2026
40 checks passed
@wylswz
wylswz deleted the feat/openapi-enabled-by-default branch November 17, 2026 14:03
@hyoban hyoban mentioned this pull request Nov 17, 2026
3 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants