persona-community-5/.pnpm-store/v3/files/4c/7d2d2016ef1966b7f025ce8b400aecc5eb4705d60931c8e4581bc24c61029d30030b30c51a5116339855b5d273ffd503a3571459d9294eb5cbf4f32717fe69
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

17 lines
387 B
Plaintext

import { missingRequiredField } from '../utils';
import type { Oas3Rule, Oas2Rule } from '../../visitors';
export const InfoLicense: Oas3Rule | Oas2Rule = () => {
return {
Info(info, { report }) {
if (!info.license) {
report({
message: missingRequiredField('Info', 'license'),
location: { reportOnKey: true },
});
}
},
};
};