> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiJjMzNjOTNiOC00OTg3LTRjNjEtYmIwZC04NGFjZjU5ZThkNDMiLCJleHAiOjE3Nzg0OTM2NDQsImlhdCI6MTc3ODQ5MzM0NH0.ebArhSPVOb83DeqcWrmHBl3ljJfRHoY0IhyvhlvuHow
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 忽略操作、通道或模式

> 了解如何使用 x-fern-ignore 在 AsyncAPI SDK 生成中排除特定的操作、通道或模式。

使用 `x-fern-ignore` 在 SDK 生成中排除特定的操作、通道或模式：

```yaml title="asyncapi.yml" {6-7, 13-14}
operations:
  debugOperation:
    action: send
    channel:
      $ref: '#/channels/debug'
    x-fern-ignore: true
    summary: Debug operation (internal only)

channels:
  internal/debug:
    address: internal/debug
    x-fern-ignore: true
    messages:
      DebugMessage:
        $ref: '#/components/messages/DebugMessage'
```