@redocly/openapi-core
Version:
See https://github.com/Redocly/openapi-cli
18 lines (17 loc) • 517 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InfoContact = void 0;
const utils_1 = require("../utils");
const InfoContact = () => {
return {
Info(info, { report, location }) {
if (!info.contact) {
report({
message: utils_1.missingRequiredField('Info', 'contact'),
location: location.child('contact').key(),
});
}
},
};
};
exports.InfoContact = InfoContact;