persona-community-5/.pnpm-store/v3/files/9b/aee34a712d8ec57098fd88ecf103823767aec58a0e6853f0705b922c8d481884de730056b22096af975a130f8338f70568537129055c3022ab4a8793d999da
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

15 lines
414 B
Plaintext

import type { Oas3Rule } from '../../visitors';
export const NoExampleValueAndExternalValue: Oas3Rule = () => {
return {
Example(example, { report, location }) {
if (example.value && example.externalValue) {
report({
message: 'Example object can have either `value` or `externalValue` fields.',
location: location.child(['value']).key(),
});
}
},
};
};