1 | ;
|
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
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.validateApiSpec = void 0;
|
8 | const validator = require('oas-validator');
|
9 | const util_1 = require("util");
|
10 | const validateAsync = (0, util_1.promisify)(validator.validate);
|
11 | // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
12 | async function validateApiSpec(spec) {
|
13 | await validateAsync(spec, {});
|
14 | }
|
15 | exports.validateApiSpec = validateApiSpec;
|
16 | //# sourceMappingURL=validate-api-spec.js.map |
\ | No newline at end of file |