From 6d69e103eb84c09127457fd40f2d21fffc5f7e2f Mon Sep 17 00:00:00 2001 From: quobix Date: Sat, 4 Nov 2023 17:23:35 -0400 Subject: [PATCH] Missing specInfo added Signed-off-by: quobix --- motor/rule_applicator.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {