feat(core/app): store tool schemas as strings - #7497
Open
FinleyGe wants to merge 4 commits into
Open
Conversation
Coverage Report
File CoverageNo changed files found. |
|
✅ Build Successful - Preview fastgpt Image for this PR: 🕒 Time: 2026-08-12 11:56:46 (UTC+8) |
|
✅ Admin Preview Image Ready! 🕒 Time: 2026-08-12 11:54:33 (UTC+8) |
Before saving to MongoDB, stringify known JSON Schema fields to avoid restrictions on keys containing dots or dollar signs. Restore them on read and keep backward compatibility with existing object data.
Refactor the common node walker to use a transform callback and remove the encode/decode boolean. Add cleanWorkflowToolJsonSchemasForStorage for upgrade scripts to stringify historical object schemas. Skip Mongoose documents in post find hooks so raw reads are not decoded.
Add admin API to convert legacy object-form tool JSON Schemas in app modules and app version nodes to strings. Defaults to dry-run and processes in batches; pass dryRun=false to apply changes.
FinleyGe
force-pushed
the
fix/jsonschema-storage
branch
from
August 12, 2026 02:29
b14c135 to
21dc320
Compare
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
Scope
The public API and runtime contracts remain JSON objects. The codec applies to
apps.modulesandapp_versions.nodesnested tool schema fields. No data migration is required for rollout; legacy object values remain readable.Validation
git diff --checkpassed@orama/oramatarball.