bcherny/json-schema-to-typescript
在 GitHub 查看Schema type inference should take `format` into account
Open
#528 建立於 2023年6月1日
enhancementgood first issue
倉庫指標
- Star
- (3,302 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
I'm not sure if support for the ipv6 format was implemented or if it was intended to be implemented, but using a string prop with an anyOf [{format: 'hostname'}, {format: 'ipv6'}], the result is string and {[key: string]: unknown}, where hostname converts to string.
ipv6 should also convert to string.