Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
how to exclude a property of a nested model from openaip schema in loopback 4

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.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!