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
+5 -1
View File
@@ -2,11 +2,15 @@ package pkg
// HackageStackYamlLockEntry represents a single entry from the "packages" section of a stack.yaml.lock file.
type HackageStackYamlLockEntry struct {
PkgHash string `mapstructure:"pkgHash" json:"pkgHash,omitempty"`
// PkgHash is the package content hash for verification
PkgHash string `mapstructure:"pkgHash" json:"pkgHash,omitempty"`
// SnapshotURL is the URL to the Stack snapshot this package came from
SnapshotURL string `mapstructure:"snapshotURL" json:"snapshotURL,omitempty"`
}
// HackageStackYamlEntry represents a single entry from the "extra-deps" section of a stack.yaml file.
type HackageStackYamlEntry struct {
// PkgHash is the package content hash for verification
PkgHash string `mapstructure:"pkgHash" json:"pkgHash,omitempty"`
}