persona-community-5/.pnpm-store/v3/files/fb/c1f19da727ccf91606749996b46afcf17cbf1ed69a5b148675e484cf094c1f8f4c42772652aa73905a0df1d8ee86315d48f15128d5b92c8f66b8fe06acf4da
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

18 lines
628 B
Plaintext

import type { Oas3Rule, Oas2Rule } from '../../visitors';
import type { Oas2Operation } from '../../typings/swagger';
import type { Oas3Operation } from '../../typings/openapi';
import type { UserContext } from '../../walk';
export const OperationSingularTag: Oas3Rule | Oas2Rule = () => {
return {
Operation(operation: Oas2Operation | Oas3Operation, { report, location }: UserContext) {
if (operation.tags && operation.tags.length > 1) {
report({
message: 'Operation `tags` object should have only one tag.',
location: location.child(['tags']).key(),
});
}
},
};
};