使用 CLI 0.13.8,u/devvit/web 服务器应用程序。尝试在运行时使用 settings.get() 读取一个秘密设置(API 密钥)。我尝试了三个形状,但所有三个都失败了 schema 验证:

  1. "settings": {"anthropic-api-key": {"type": "string", "isSecret": true}}settings is not allowed to have the additional property "anthropic-api-key"
  2. "settings": [{"type": "string", "name": "anthropic-api-key", "secret": true}]settings is not of a type(s) object
  3. "settings": {"app": {"anthropic-api-key": {"type": "string", "label": "Anthropic API Key", "isSecret": true}}}settings is not allowed to have the additional property "app"

devvit.json 中的 settings 字段的实际正确形状是什么?如何在服务器端读取已声明的值?