Rename Legacy filter to Root filter.

This commit is contained in:
Jay
2026-03-03 16:17:10 -05:00
parent 4114b4c02a
commit d87ec421db
2 changed files with 17 additions and 17 deletions

View File

@@ -8,8 +8,8 @@ import (
)
type HeartwoodFilter struct {
Legacy roots.Filter
Graph []GraphFilter
Root roots.Filter
Graph []GraphFilter
}
type GraphFilter struct {
@@ -31,7 +31,7 @@ type Distance struct {
}
func MarshalJSON(f HeartwoodFilter) ([]byte, error) {
legacyFilter := f.Legacy
legacyFilter := f.Root
if f.Graph != nil {
graphArray, err := marshalGraphArray(f.Graph)
@@ -69,7 +69,7 @@ func UnmarshalJSON(data []byte, f *HeartwoodFilter) error {
delete(rootsFilter.Extensions, "graph")
}
f.Legacy = rootsFilter
f.Root = rootsFilter
return nil
}