1

I was trying to exclude the property of the nested model on the openAPI schema. Is it possible to do that in the controller with @requestbody() decorator?

Example

@model()
export class ChildModel {
    @property()
    id: string;

    @property()
    name: string;
}

@model()
export class ParentModel {
    @property()
    description: string;

    @property()
    childModel: ChildModel;
}

If I used ParentModel in the request body I could exclude description or childModel. But I couldn't find a way to exclude name or id from childModel.

Archit Gargi
  • 634
  • 1
  • 8
  • 24
naol arega
  • 11
  • 1

0 Answers0