MCPcopy Index your code
hub / github.com/pmxt-dev/pmxt / collectOperationSampleLabels

Function collectOperationSampleLabels

core/test/unit/openapi-code-samples.test.js:72–75  ·  view source on GitHub ↗
(spec, operationId)

Source from the content-addressed store, hash-verified

70}
71
72function collectOperationSampleLabels(spec, operationId) {
73 return (getOperation(spec, operationId)['x-codeSamples'] || [])
74 .map((sample) => sample.label);
75}
76
77function collectAllCodeSamples(spec) {
78 return Object.values(spec.paths || {})

Callers 1

Calls 1

getOperationFunction · 0.70

Tested by

no test coverage detected