Complete shared domain contract verification

This commit is contained in:
2026-11-29 18:28:59 +00:00
parent 9dc976afaf
commit 41a5c43561
33 changed files with 126 additions and 97 deletions

View File

@@ -38,6 +38,9 @@ func New(_ Options, references ...contracts.ReferenceSet) (*Validator, error) {
if len(references) == 1 {
referenceSet = references[0]
}
if err := shared.ValidateReferenceSelections(referenceSet); err != nil {
return nil, err
}
resolver, err := npcregistry.NewResolver(referenceSet)
if err != nil {
return nil, fmt.Errorf("prepare NPC registry: %w", err)
@@ -151,9 +154,6 @@ func Register(registry *pipeline.ValidatorRegistry) error {
if err != nil {
return nil, err
}
if err := shared.ValidateReferenceSelections(request.References); err != nil {
return nil, err
}
return New(options, request.References)
})
}