Skip to content

Commit

Permalink
Missing specInfo added
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Nov 4, 2023
1 parent 559a84f commit 6d69e10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion motor/rule_applicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -234,7 +237,6 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult {
if rolodexResolved != nil && rolodexResolved.GetRootIndex() != nil {
resolvingErrors = rolodexResolved.GetRootIndex().GetResolver().GetResolvingErrors()
}

}

for i := range resolvedModelErrors {
Expand Down

0 comments on commit 6d69e10

Please sign in to comment.