bcherny/json-schema-to-typescript

Schema type inference should take `format` into account

Open

#528 ouverte le 1 juin 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)TypeScript (449 forks)github user discovery
enhancementgood first issue

Métriques du dépôt

Stars
 (3 302 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur