UNPKG

@stoplight/spectral

Version:

A flexible object linter with out of the box support for OpenAPI v2 and v3.

12 lines 343 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.truthy = (targetVal, _opts, paths) => { if (!targetVal) { return [ { message: `${paths.target ? paths.target.join('.') : 'property'} is not truthy`, }, ]; } }; //# sourceMappingURL=truthy.js.map