UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/openapi-cli

18 lines (17 loc) 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InfoLicense = void 0; const utils_1 = require("../utils"); const InfoLicense = () => { return { Info(info, { report }) { if (!info.license) { report({ message: utils_1.missingRequiredField('Info', 'license'), location: { reportOnKey: true } }); } }, }; }; exports.InfoLicense = InfoLicense;