Repository navigation
feat(web): export OpenAPI mapper types and compatible contract subpaths - #44915
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #44915 +/- ##
==========================================
- Coverage 89.53% 89.53% -0.01%
==========================================
Files 6008 6008
Lines 376874 376906 +32
Branches 76259 76267 +8
==========================================
+ Hits 337438 337461 +23
- Misses 33439 33449 +10
+ Partials 5997 5996 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…mapper-type-exports
…mapper-type-exports
Contributor
Pyrefly Type Coverage
|
hyoban
marked this pull request as ready for review
October 28, 2026 08:55
hyoban
requested review from
QuantumGhost,
crazywoola,
iamjoel,
laipz8200 and
lyzno1
as code owners
October 28, 2026 08:55
lyzno1
previously approved these changes
Oct 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Oct 28, 2026
…mapper-type-exports # Conflicts: # packages/openapi-content-mapper/test/source.test.mjs
lyzno1
approved these changes
Oct 28, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenAPI mapper consumers can infer calls, but migration also needs reusable schema types and the named request/response types already exposed by contracts. Export
Schemas,Inputs, andOutputsfrom mapped documents, and add opt-in, type-only workspace subpaths such as@dify/openapi-content-mapper/console/datasetsthat preserve existing contract type names and structures.Fixes #44626. Follow-up to #44627.
.openapi-typessources with inherited configuration, glob registration, and dependency invalidation. Thin module descriptors share two exporter configurations and refresh after the existing contract generation commands.@dify/contractsexports and production consumers unchanged. Runtime enums remain in contracts. Dify-specific subpaths require repository development dependencies and are excluded from the standalone npm package.Validation
pnpm --filter @dify/contracts type-checkpnpm --filter @dify/contracts test— 52 tests passed.pnpm --filter @dify/openapi-content-mapper buildpnpm --filter @dify/openapi-content-mapper type-checkpnpm --filter @dify/openapi-content-mapper type-check:contractspnpm --filter @dify/openapi-content-mapper test— 56 tests passed.pnpm --filter @dify/openapi-content-mapper test:contracts— 2 tests passed; bidirectional compatibility checked across 60 modules, 10,569 named types, and 44 enum objects.pnpm --filter @dify/openapi-content-mapper test:package— packed SDK installation and public exports verified.pnpm exec vp stagedandgit diff --checkpassed.Screenshots
Not applicable: type exports and development tooling.
Checklist
vp stagedfor the frontend tooling changes. Backend lint and type-check commands are not applicable; no Python files changed.