Skip to content

Define JSON-RPC plugins#15

Merged
skonves merged 3 commits intomainfrom
json-rpc
Aug 23, 2025
Merged

Define JSON-RPC plugins#15
skonves merged 3 commits intomainfrom
json-rpc

Conversation

@skonves
Copy link
Member

@skonves skonves commented Aug 23, 2025

This PR implements JSON-RPC plugin support by defining comprehensive schemas and validation functions for parser, validator, and generator plugins. It establishes a standardized communication protocol between the Basketry CLI and plugins using JSON-RPC 2.0 specification.

@skonves skonves requested a review from Copilot August 23, 2025 17:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements JSON-RPC plugin support by defining comprehensive schemas and validation functions for parser, validator, and generator plugins. It establishes a standardized communication protocol between the Basketry CLI and plugins using JSON-RPC 2.0 specification.

Key changes:

  • Added JSON-RPC request/response schemas for parse, validate, and generate operations
  • Extended validation functions to support all plugin types with proper error handling
  • Updated package dependencies to stable versions and integrated Basketry build process

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

File Description
src/validator.ts Added comprehensive validation functions for all JSON-RPC plugin operations with generic error handling
src/schema.json Defined complete JSON-RPC schemas for plugin communication including request/response structures
src/index.ts Updated exports to include all validator functions
package.json Updated dependencies to stable versions and integrated Basketry into build process

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@skonves skonves merged commit 8ff4666 into main Aug 23, 2025
6 checks passed
@skonves skonves deleted the json-rpc branch August 23, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants