On my Swagger Doc for a class, I'm trying to see a JSON schema output for my class.
My class, however, makes use of 2 "types"
export class PushNotification {
name: string;
dir?: NotificationDirection;
vibrate?: VibratePattern;
}
...
type NotificationDirection = 'auto' | 'ltr' | 'rtl';
type VibratePattern = number | number[];
On Swagger, on the schema, the key:value for "name" shows just fine, but the value appears blank for these other two variables.
How can I go about serializing these? I've been using class-transformer but I don't know if it works with "type"?