Skip to content

Commit

Permalink
🐛 Add openapi struct fields for dependency condition (#592)
Browse files Browse the repository at this point in the history
fixes #551

---------

Signed-off-by: vickysomtee <vickysomtee@gmail.com>
  • Loading branch information
Vickysomtee committed May 6, 2024
1 parent 3cc65e2 commit 005a232
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,13 +615,14 @@ func templateCondition(condition []byte, ctx map[string]engine.ChainTemplate) ([
}

type DependencyConditionCap struct {
Upperbound string `json:"upperbound,omitempty"`
Lowerbound string `json:"lowerbound,omitempty"`
Name string `json:"name"`
Upperbound string `json:"upperbound,omitempty" title:"Upperbound" description:"Match versions lower than or equal to"`
Lowerbound string `json:"lowerbound,omitempty" title:"Lowerbound" description:"Match versions greater than or equal to"`
Name string `json:"name" title:"Name" description:"Name of the dependency"`

// NameRegex will be a valid go regex that will be used to
// search the name of a given dependency.
// Examples include kubernetes* or jakarta-.*-2.2.
NameRegex string `json:"name_regex,omitempty"`
NameRegex string `json:"name_regex,omitempty" title:"NameRegex" description:"Regex pattern to match the name"`
}

// TODO where should this go
Expand Down

0 comments on commit 005a232

Please sign in to comment.