shigma / schemastery

Type driven schema validator
https://shigma.github.io/schemastery/
MIT License
63 stars 8 forks source link

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

Closed idranme closed 1 year ago

idranme commented 1 year ago

复现:

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 commented 1 year ago

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

idranme commented 1 year ago

就剩下这个问题了

idranme commented 1 year ago

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

idranme commented 1 year ago

Schema.intersect 去掉就正常了。

shigma commented 1 year ago

已复现。感谢反馈。

idranme commented 1 year ago

已复现。感谢反馈。

好耶

shigma commented 1 year ago

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

shigma commented 1 year ago

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

idranme commented 1 year ago

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

🥰🥰