Suffix returns the suffix to use for collision resolution.
()
| 67 | |
| 68 | // Suffix returns the suffix to use for collision resolution. |
| 69 | func (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. |
no outgoing calls
no test coverage detected