> 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.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI4OTRkZDY2OC0yOTBlLTQ4ZDAtYjNkMC0xMjA3MWFlODRmYTciLCJleHAiOjE3Nzg0OTMxNDIsImlhdCI6MTc3ODQ5Mjg0Mn0.UdHoz_sWaOGFiwDoG0PqjdMyB1GuYAuOjsCqdsqrVWs
>
> 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-property-name` 扩展自定义对象属性的变量名称

`x-fern-property-name` 扩展允许您自定义对象属性的变量名称。

例如，如果您的模式中有一个名为 `_metadata` 的属性，但您希望在 SDK 中将变量称为 `data`，您可以执行以下操作：

```yaml {6}
components:
  schemas:
    MyUser:
      _metadata:
        type: object
        x-fern-property-name: data
```