Spaces:
Sleeping
Sleeping
Hozifa Elgharbawy
Update SwaggerResponseProperty types in serializers, add summary and description
339fa48
import { Expose, Transform } from "class-transformer"; | |
import { serialize } from "@helpers/serialize"; | |
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator"; | |
class MealPlanDays { | |
() | |
type: "string" }) | ({|
title: string; | |
name: "meals" }) | ({|
type: ["string"] }) | ({|
meals: any; | |
} | |
class MealPlanKeyFeatures { | |
() | |
type: "number" }) | ({|
day_number: number; | |
name: "description" }) | ({|
type: "string" }) | ({|
description: any; | |
} | |
export class MealPlanSerialization { | |
name: "_id" }) | ({|
type: "string" }) | ({|
id: string; | |
() | |
type: "string" }) | ({|
image: string; | |
() | |
type: "string" }) | ({|
description: string; | |
() | |
type: "string" }) | ({|
Duration: string; | |
() | |
type: "string" }) | ({|
Level: string; | |
() | |
type: "string" }) | ({|
your_Journey: string; | |
name: "key_Features" }) | ({|
type: [MealPlanKeyFeatures] }) | ({|
( | |
({ value }) => serialize(value, MealPlanKeyFeatures) | |
) | |
key_Features: any; | |
name: "days" }) | ({|
type: [MealPlanDays] }) | ({|
( | |
({ value }) => serialize(value, MealPlanDays) | |
) | |
days: any; | |
} |