Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Schema.dict() 显示异常 #47

Closed
idranme opened this issue Jun 23, 2023 · 9 comments
Closed

Bug: Schema.dict() 显示异常 #47

idranme opened this issue Jun 23, 2023 · 9 comments

Comments

@idranme
Copy link

idranme commented Jun 23, 2023

复现:

export interface Config {}

export const Config: Schema<Config> = Schema.object({
  constants: Schema.dict(Schema.intersect([
    Schema.object({
      name: Schema.string(),
    })
  ])).description('常量列表')
}).description('常量设置')

截图:
image

问题:
填写 key 的地方不见了。

@idranme
Copy link
Author

idranme commented Jun 23, 2023

@shigma 无法展开的问题已找到 koishijs/docs#82

@idranme
Copy link
Author

idranme commented Jun 23, 2023

就剩下这个问题了

@idranme
Copy link
Author

idranme commented Jun 23, 2023

我确信现在是最小复现了。

@idranme
Copy link
Author

idranme commented Jun 23, 2023

Schema.intersect 去掉就正常了。

@shigma
Copy link
Owner

shigma commented Jun 24, 2023

已复现。感谢反馈。

@idranme
Copy link
Author

idranme commented Jun 24, 2023

已复现。感谢反馈。

好耶

@shigma shigma closed this as completed in 0728019 Jun 24, 2023
@shigma
Copy link
Owner

shigma commented Jun 24, 2023

修了。Koishi 那边估计一周内实装。

@shigma
Copy link
Owner

shigma commented Jun 24, 2023

最近的两个 bug 都已经实装修复。

@idranme
Copy link
Author

idranme commented Jun 25, 2023

最近的两个 bug 都已经实装修复。

🥰🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants