persona-community-5/.pnpm-store/v3/files/e8/f0953141b3ea05a3a065ee142903866f62a575a6382fe833bd7962b0bb21ce93ed86efaedf946f9a98e9ec13dfc8c6bf0215375bca31586e6b5050c7c50a37
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
514 B
Plaintext

import { validateDefinedAndNonEmpty } from '../utils';
import type { Oas3Rule, Oas2Rule } from '../../visitors';
import type { UserContext } from '../../walk';
import type { Oas2Operation } from '../../typings/swagger';
import type { Oas3Operation } from '../../typings/openapi';
export const OperationDescription: Oas3Rule | Oas2Rule = () => {
return {
Operation(operation: Oas2Operation | Oas3Operation, ctx: UserContext) {
validateDefinedAndNonEmpty('description', operation, ctx);
},
};
};