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

Method Params

pkg/codegen/operations.go:360–364  ·  view source on GitHub ↗

Params returns the list of all parameters except Path parameters. Path parameters are handled differently from the rest, since they're mandatory.

()

Source from the content-addressed store, hash-verified

358// Params returns the list of all parameters except Path parameters. Path parameters
359// are handled differently from the rest, since they're mandatory.
360func (o *OperationDefinition) Params() []ParameterDefinition {
361 result := append(o.QueryParams, o.HeaderParams...)
362 result = append(result, o.CookieParams...)
363 return result
364}
365
366// AllParams returns all parameters
367func (o *OperationDefinition) AllParams() []ParameterDefinition {

Callers 15

RequiresParamObjectMethod · 0.95
GetContentObjectMethod · 0.80
GetLabelExplodeArrayMethod · 0.80
GetLabelExplodeObjectMethod · 0.80
GetLabelPrimitiveMethod · 0.80
GetMatrixExplodeArrayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected