Closed newtechfellas closed 2 years ago
Given below type definitions in typescript: `export type HospitalCategory = "Allopathy" | "Homeopathy" | "Ayurveda" | "Naturopathy" | "Other";
export interface Hospital { name: string; email: string; phoneNumber: string; category: HospitalCategory; ... ... }` On generating swagger documentation, UI reflects incorrect type for category field. Is this expected?
This is not the type, this is an "Example Value".
If you click on Model, it correctly shows the various options. This description is simply a view of a "possible response", which "Allopathy" is.
Model
Given below type definitions in typescript: `export type HospitalCategory = "Allopathy" | "Homeopathy" | "Ayurveda" | "Naturopathy" | "Other";
export interface Hospital { name: string; email: string; phoneNumber: string; category: HospitalCategory; ... ... }` On generating swagger documentation, UI reflects incorrect type for category field. Is this expected?