https://github.com/lcandy2/vscode-dify-plugin-schema
https://github.com/lcandy2/vscode-dify-plugin-schema
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lcandy2/vscode-dify-plugin-schema
- Owner: lcandy2
- Created: 2025-04-26T05:50:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-27T01:51:35.000Z (about 1 year ago)
- Last Synced: 2025-12-26T22:00:13.880Z (6 months ago)
- Language: TypeScript
- Size: 238 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Dify Plugin Schema
A Visual Studio Code extension that provides schema validation for Dify Plugin configuration files.
## Features
This extension provides JSON schema validation for Dify Plugin configuration files, including:
- Schema validation for `manifest.yaml` files
- Schema validation for tool configuration files in the `tools/*.yaml` pattern
- Schema validation for provider configuration files in the `provider/*.yaml` pattern
When editing these YAML files, you'll receive:
- Syntax validation
- Auto-completion suggestions
- Hover documentation
- Error highlighting for invalid configuration
## Requirements
This extension depends on the "YAML Support by Red Hat" extension, which will be automatically installed as a dependency.
## Installation
You can install this extension through the VS Code Marketplace:
1. Open VS Code
2. Go to Extensions (Ctrl+Shift+X)
3. Search for "Dify Plugin Schema"
4. Click Install
## Usage
The extension automatically activates when a `manifest.yaml` file is detected in your workspace. Schema validation will be applied to:
- `/manifest.yaml` - Dify Plugin manifest
- `/tools/*.yaml` - Tool configuration files
- `/provider/*.yaml` - Provider configuration files
## Schema Details
The extension uses the following schema URLs:
- Manifest: `https://lcandy2.github.io/vscode-dify-plugin-schema/src/schema/manifest.json`
- Tools: `https://lcandy2.github.io/vscode-dify-plugin-schema/src/schema/tools/tools.json`
- Provider: `https://lcandy2.github.io/vscode-dify-plugin-schema/src/schema/tools/provider.json`
## Release Notes
### 0.0.1
Initial release of Dify Plugin Schema extension with:
- Support for manifest.yaml validation
- Support for tools/*.yaml validation
- Support for provider/*.yaml validation
---
## For more information
* [Dify Official Website](https://dify.ai/)
* [Visual Studio Code's YAML Support](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)
**Enjoy building with Dify!**