Skip to content

Conversation

@vm-001
Copy link
Collaborator

@vm-001 vm-001 commented Nov 12, 2025

Summary

This PR used OpenAPI (JSON Schema) to validate plugin configuration

@vm-001 vm-001 changed the title refactor(plugin): refactor plugin refactor(plugin): use OpenAPI to validate plugin configuration Nov 12, 2025
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 76.85185% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
db/entities/plugin.go 72.22% 2 Missing and 3 partials ⚠️
pkg/plugin/base.go 81.81% 2 Missing and 2 partials ⚠️
proxy/gateway.go 50.00% 2 Missing and 1 partial ⚠️
worker/worker.go 50.00% 2 Missing and 1 partial ⚠️
pkg/plugin/plugin.go 60.00% 1 Missing and 1 partial ⚠️
plugins/function/plugin.go 60.00% 2 Missing ⚠️
plugins/jsonschema_validator/plugin.go 60.00% 2 Missing ⚠️
plugins/wasm/plugin.go 60.00% 2 Missing ⚠️
plugins/webhookx_signature/plugin.go 77.77% 2 Missing ⚠️
Flag Coverage Δ
integration 73.41% <73.14%> (-1.04%) ⬇️
integration-o11 43.69% <3.70%> (?)
unit 13.10% <5.55%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
admin/api/plugins.go 100.00% <100.00%> (ø)
pkg/declarative/types.go 85.71% <ø> (+5.71%) ⬆️
pkg/openapi/openapi.go 84.82% <100.00%> (+1.01%) ⬆️
pkg/plugin/registry.go 83.33% <100.00%> (ø)
plugins/plugins.go 100.00% <100.00%> (ø)
pkg/plugin/plugin.go 60.00% <60.00%> (+10.00%) ⬆️
plugins/function/plugin.go 82.60% <60.00%> (-3.11%) ⬇️
plugins/jsonschema_validator/plugin.go 69.76% <60.00%> (-11.72%) ⬇️
plugins/wasm/plugin.go 66.66% <60.00%> (-4.77%) ⬇️
plugins/webhookx_signature/plugin.go 90.90% <77.77%> (-9.10%) ⬇️
... and 4 more

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vm-001 vm-001 force-pushed the refactor/plugin branch 2 times, most recently from 71d993a to 4b932bc Compare November 13, 2025 10:45
Copy link
Collaborator

@cchenggit cchenggit left a comment

Choose a reason for hiding this comment

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

LGTM

@webhookx-x webhookx-x merged commit 63d6912 into main Nov 17, 2025
8 of 9 checks passed
@webhookx-x webhookx-x deleted the refactor/plugin branch November 17, 2025 06:06
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.

4 participants