(spec, operationId, language)
| 64 | } |
| 65 | |
| 66 | function collectOperationSamples(spec, operationId, language) { |
| 67 | return (getOperation(spec, operationId)['x-codeSamples'] || []) |
| 68 | .filter((sample) => sample.lang === language) |
| 69 | .map((sample) => sample.source); |
| 70 | } |
| 71 | |
| 72 | function collectOperationSampleLabels(spec, operationId) { |
| 73 | return (getOperation(spec, operationId)['x-codeSamples'] || []) |
no test coverage detected