I am creating a loopback model (model1) which refers to another model and want to hide some properties of the nested model (model2). Also, I just want them to be hidden in this model1. How can I solve this issue ?
I have tried the property hidden, which works fine with the current model1 properties but not with the nested model2 properties.
{
"name": "Model1",
"base": "PersistedModel",
"idInjection": true,
...
"properties": {
"pet": {
"type": "Model2",
}
...
}
{
"name": "Model2",
...
"properties": {
"name": {
"type": "string",
}
...
}
I want here to hide the property "name" from Model2 in the Model1 explorer
Thanks !