MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / FindByName

Method FindByName

pkg/codegen/operations.go:236–243  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

234type ParameterDefinitions []ParameterDefinition
235
236func (p ParameterDefinitions) FindByName(name string) *ParameterDefinition {
237 for _, param := range p {
238 if param.ParamName == name {
239 return &param
240 }
241 }
242 return nil
243}
244
245// DescribeParameters walks the given parameters dictionary, and generates the above
246// descriptors into a flat list. This makes it a lot easier to traverse the

Callers 1

SortParamsByPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected