MCPcopy Create free account
hub / github.com/goadesign/goa / DupScheme

Function DupScheme

expr/security.go:133–146  ·  view source on GitHub ↗

DupScheme creates a copy of the given scheme expression.

(sch *SchemeExpr)

Source from the content-addressed store, hash-verified

131
132// DupScheme creates a copy of the given scheme expression.
133func 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.

Callers 2

SecurityFunction · 0.92
DupRequirementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected