feat(verifier): expose the property names a loaded spec registered

This commit is contained in:
pj committed 2026-08-17 23:24:31 +05:30
1 parent 573749f17a
commit 11c1569932
1 file changed
+11
+11
View File
@@ -499,6 +499,17 @@ func (v *Verifier) ExtractorNames() []string {
return names return names
} }
// PropertyNames returns the names of the properties the loaded spec registered,
// sorted.
func (v *Verifier) PropertyNames() []string {
names := make([]string, 0, len(v.properties))
for name := range v.properties {
names = append(names, name)
}
sort.Strings(names)
return names
}
// PropertyFormulas rebuilds each registered property's formula. The thunks are // PropertyFormulas rebuilds each registered property's formula. The thunks are
// this verifier's own predicates, reading this verifier's extractor state, so // this verifier's own predicates, reading this verifier's extractor state, so
// an evaluator built over a rewritten formula observes exactly what the // an evaluator built over a rewritten formula observes exactly what the