@redocly/respect-core
Version:
API testing framework core
10 lines • 382 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractFirstExample = extractFirstExample;
function extractFirstExample(examples) {
if (typeof examples !== 'object')
return;
const firstKey = Object.keys(examples)[0];
return firstKey ? examples[firstKey]?.value : undefined;
}
//# sourceMappingURL=extract-first-example.js.map