created a plugin for schema validation and related unit test

This commit is contained in:
AshwiniK-protean
2025-02-14 11:05:54 +05:30
parent 91f0b16b5c
commit 50f93d8239
10 changed files with 600 additions and 0 deletions

22
plugins/model.go Normal file
View File

@@ -0,0 +1,22 @@
package main
type PluginConfig struct {
Plugins Plugins `yaml:"plugins"`
}
// PluginConfig represents the configuration for plugins.
type Plugins struct {
ValidationPlugin ValidationPlugin `yaml:"validation_plugin"`
}
// ValidationPlugin represents the configuration for a validation plugin.
type ValidationPlugin struct {
ID string `yaml:"id"`
Config PluginDetails `yaml:"config"`
PluginPath string `yaml:"plugin_path"`
}
// PluginDetails represents the details of the plugin configuration.
type PluginDetails struct {
Schema string `yaml:"schema"`
}