diff --git a/motor/rule_applicator.go b/motor/rule_applicator.go index 141cfc2a..a62327f8 100644 --- a/motor/rule_applicator.go +++ b/motor/rule_applicator.go @@ -138,6 +138,9 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult { docResolved, err = libopenapi.NewDocumentWithConfiguration(execution.Spec, docConfig) docUnresolved, _ = libopenapi.NewDocumentWithConfiguration(execution.Spec, docConfig) + specInfo = docResolved.GetSpecInfo() + indexConfig.SpecInfo = specInfo + if err != nil { // Done here, we can't do anything else. return &RuleSetExecutionResult{Errors: []error{err}} @@ -234,7 +237,6 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult { if rolodexResolved != nil && rolodexResolved.GetRootIndex() != nil { resolvingErrors = rolodexResolved.GetRootIndex().GetResolver().GetResolvingErrors() } - } for i := range resolvedModelErrors {