You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export interface MySchema{
icon: string;
languages: { [key: string]: Language }; // here I would expect the key to be of type enum de/en
}
export interface Language {
description?: string;
name: string;
recommendation?: string;
}
Hi there!
Thank you for your great tool!
Converting a dictonary-like JSON schema to TS types I have found the following issue:
The keys are not enforced as Enum but are only strings:
I would consider this behaviour as a bug.
It get's worse if I put
"required": ["en"]
to my language property. Then it generates:
The text was updated successfully, but these errors were encountered: