mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
[PR #283] feat: Add JSON Schema generation for plugin manifests #284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/283
Author: @yamachu
Created: 1/19/2026
Status: 🔄 Open
Base:
main← Head:feat/generate-json-schema📝 Commits (3)
f711fd0feat: add output file option and json-schema support for documentation generation8e54634feat: add documentation for parameter types22985e0feat: implement JSON Schema generation for Pydantic models and Enums📊 Changes
8 files changed (+262 additions, -3 deletions)
View changed files
📝
python/dify_plugin/cli.py(+18 -1)📝
python/dify_plugin/commands/generate_docs.py(+7 -2)📝
python/dify_plugin/core/documentation/generator.py(+213 -0)📝
python/dify_plugin/entities/agent.py(+3 -0)📝
python/dify_plugin/entities/datasource_manifest.py(+3 -0)📝
python/dify_plugin/entities/provider_config.py(+3 -0)📝
python/dify_plugin/entities/tool.py(+9 -0)📝
python/dify_plugin/entities/trigger.py(+6 -0)📄 Description
Summary
$schema.Pythondefinitions may be merged). This will need a follow-up refinement if collisions appear.I tested ...
uv run ./dify_plugin/cli.py generate-docsuv run ./dify_plugin/cli.py generate-docs --format json-schemaPull Request Checklist
Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:
Compatibility Check
README.mdREADME.mdREADME.mdREADME.mdAvailable Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.