UNPKG

707 BJavaScriptView Raw
1"use strict";
2// Copyright IBM Corp. and LoopBack contributors 2017,2019. All Rights Reserved.
3// Node module: @loopback/testlab
4// This file is licensed under the MIT License.
5// License text available at https://opensource.org/licenses/MIT
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.validateApiSpec = void 0;
8const validator = require('oas-validator');
9const util_1 = require("util");
10const validateAsync = (0, util_1.promisify)(validator.validate);
11// eslint-disable-next-line @typescript-eslint/no-explicit-any
12async function validateApiSpec(spec) {
13 await validateAsync(spec, {});
14}
15exports.validateApiSpec = validateApiSpec;
16//# sourceMappingURL=validate-api-spec.js.map
\No newline at end of file