ScopeEnumRule to validate scope against a list of allowed values
| 11 | |
| 12 | // ScopeEnumRule to validate scope against a list of allowed values |
| 13 | type ScopeEnumRule struct { |
| 14 | Scopes []string |
| 15 | |
| 16 | AllowEmpty bool |
| 17 | } |
| 18 | |
| 19 | // Name return name of the rule |
| 20 | func (r *ScopeEnumRule) Name() string { return "scope-enum" } |
nothing calls this directly
no outgoing calls
no test coverage detected