IsComponentSchema returns true if this schema came from components/schemas.
()
| 102 | |
| 103 | // IsComponentSchema returns true if this schema came from components/schemas. |
| 104 | func (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. |
no outgoing calls
no test coverage detected