Improve struct and field comments and incorporate into json schema (#4252)

* improve struct and field comments and incorporate into json schema

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* address review feedback

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2025-10-03 17:01:56 +00:00
committed by GitHub
parent b96d3d20af
commit a77d24e379
57 changed files with 4241 additions and 1676 deletions
+7 -2
View File
@@ -2,7 +2,12 @@ package pkg
// WordpressPluginEntry represents all metadata parsed from the wordpress plugin file
type WordpressPluginEntry struct {
// PluginInstallDirectory is directory name where the plugin is installed
PluginInstallDirectory string `mapstructure:"pluginInstallDirectory" json:"pluginInstallDirectory"`
Author string `mapstructure:"author" json:"author,omitempty"`
AuthorURI string `mapstructure:"authorUri" json:"authorUri,omitempty"`
// Author is plugin author name
Author string `mapstructure:"author" json:"author,omitempty"`
// AuthorURI is author's website URL
AuthorURI string `mapstructure:"authorUri" json:"authorUri,omitempty"`
}