persona-community-5/.pnpm-store/v3/files/0e/b72beddff3ac9522040e581c600a92f5c2a352cd62a34c7e81a54cb74fca2bc8300743ee3d8cfdfe5faadcf7044661eae1f10f2262061b276b3e0f5b5736bd
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
407 B
Plaintext

import { missingRequiredField } from '../utils';
import type { Oas3Rule, Oas2Rule } from '../../visitors';
export const InfoContact: Oas3Rule | Oas2Rule = () => {
return {
Info(info, { report, location }) {
if (!info.contact) {
report({
message: missingRequiredField('Info', 'contact'),
location: location.child('contact').key(),
});
}
},
};
};