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

Method Suffix

pkg/codegen/gather.go:69–86  ·  view source on GitHub ↗

Suffix returns the suffix to use for collision resolution.

()

Source from the content-addressed store, hash-verified

67
68// Suffix returns the suffix to use for collision resolution.
69func (sc SchemaContext) Suffix() string {
70 switch sc {
71 case ContextComponentSchema:
72 return "Schema"
73 case ContextComponentParameter, ContextOperationParameter:
74 return "Parameter"
75 case ContextComponentRequestBody, ContextOperationRequestBody:
76 return "RequestBody"
77 case ContextComponentResponse, ContextOperationResponse:
78 return "Response"
79 case ContextComponentHeader:
80 return "Header"
81 case ContextClientResponseWrapper:
82 return "Response"
83 default:
84 return ""
85 }
86}
87
88// GatheredSchema represents a schema discovered during the gather pass,
89// along with its document location and context metadata.

Callers 1

strategyContextSuffixFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected