bcherny/json-schema-to-typescript
GitHub で見るSchema type inference should take `format` into account
Open
#528 opened on 2023年6月1日
enhancementgood first issue
Repository metrics
- Stars
- (3,302 stars)
- PR merge metrics
- (30d に merged 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.