introduce nodeinfo
This commit is contained in:
parent
587bd07372
commit
8116214727
6 changed files with 238 additions and 163 deletions
|
@ -28,7 +28,7 @@ func ValidateNotEmpty(value, fieldName string) []string {
|
|||
return []string{}
|
||||
}
|
||||
|
||||
func ValidateOneOf(value string, allowed []string) []string {
|
||||
func ValidateOneOf(value any, allowed []any) []string {
|
||||
for _, allowedElem := range allowed {
|
||||
if value == allowedElem {
|
||||
return []string{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue