bcherny/json-schema-to-typescript

Schema type inference should take `format` into account

Open

#528 创建于 2023年6月1日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (449 fork)github user discovery
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.

ref: https://github.com/appium/appium/pull/18690

贡献者指南