@redocly/openapi-core
Version:
See https://github.com/Redocly/redocly-cli
15 lines • 499 B
JavaScript
export const SourceDescriptionsNotEmpty = () => {
return {
SourceDescriptions: {
enter(sourceDescriptions, { report, location }) {
if (!sourceDescriptions?.length) {
report({
message: 'The `sourceDescriptions` list must have at least one entry.',
location,
});
}
},
},
};
};
//# sourceMappingURL=sourceDescriptions-not-empty.js.map