DupScheme creates a copy of the given scheme expression.
(sch *SchemeExpr)
| 131 | |
| 132 | // DupScheme creates a copy of the given scheme expression. |
| 133 | func DupScheme(sch *SchemeExpr) *SchemeExpr { |
| 134 | dup := SchemeExpr{ |
| 135 | Kind: sch.Kind, |
| 136 | SchemeName: sch.SchemeName, |
| 137 | Description: sch.Description, |
| 138 | In: sch.In, |
| 139 | Name: sch.Name, |
| 140 | BearerFormat: sch.BearerFormat, |
| 141 | Scopes: sch.Scopes, |
| 142 | Flows: sch.Flows, |
| 143 | Meta: sch.Meta, |
| 144 | } |
| 145 | return &dup |
| 146 | } |
| 147 | |
| 148 | // HasNoSecurity returns true if the security requirements explicitly disable |
| 149 | // security. |
no outgoing calls
no test coverage detected