EffectiveSecurityRequirements returns the security requirements that should be enforced. It returns nil when reqs explicitly disable security.
(reqs []*SecurityExpr)
| 161 | // EffectiveSecurityRequirements returns the security requirements that should |
| 162 | // be enforced. It returns nil when reqs explicitly disable security. |
| 163 | func EffectiveSecurityRequirements(reqs []*SecurityExpr) []*SecurityExpr { |
| 164 | if HasNoSecurity(reqs) { |
| 165 | return nil |
| 166 | } |
| 167 | return reqs |
| 168 | } |
| 169 | |
| 170 | // Type returns the type of the scheme. |
| 171 | func (s *SchemeExpr) Type() string { |