bcherny/json-schema-to-typescript
Vedi su GitHubSchema type inference should take `format` into account
Open
#528 aperta il 1 giu 2023
enhancementgood first issue
Metriche repository
- Star
- (3302 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.