@redocly/openapi-core
Version:
See https://github.com/Redocly/redocly-cli
19 lines • 681 B
JavaScript
export const ParameterDescription = () => {
return {
Parameter(parameter, { report, location }) {
if (parameter.description === undefined) {
report({
message: 'Parameter object description must be present.',
location: { reportOnKey: true },
});
}
else if (!parameter.description) {
report({
message: 'Parameter object description must be non-empty string.',
location: location.child(['description']),
});
}
},
};
};
//# sourceMappingURL=parameter-description.js.map