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

Method IsComponentSchema

pkg/codegen/gather.go:104–106  ·  view source on GitHub ↗

IsComponentSchema returns true if this schema came from components/schemas.

()

Source from the content-addressed store, hash-verified

102
103// IsComponentSchema returns true if this schema came from components/schemas.
104func (gs *GatheredSchema) IsComponentSchema() bool {
105 return gs.Context == ContextComponentSchema
106}
107
108// GatherSchemas walks the entire OpenAPI spec and collects all schemas that
109// will need Go type names. This is the first pass of the multi-pass resolution.

Callers 2

strategyContextSuffixFunction · 0.80
strategyNumericFallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected