persona-community-5/.pnpm-store/v3/files/fa/74700c639fd8190846a516d2eba2be354b6acc70f7f72cca1a4d60772744aeb554bff7eb0f5b15330d880f60139d9e5dd3d0a5e4eb1f5a69daae2568eb763c
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

19 lines
572 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 OperationOperationId: Oas3Rule | Oas2Rule = () => {
return {
Root: {
PathItem: {
Operation(operation: Oas2Operation | Oas3Operation, ctx: UserContext) {
validateDefinedAndNonEmpty('operationId', operation, ctx);
},
},
},
};
};