Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

model property option hidden is ignored #3

Closed
shubhamp-sf opened this issue Oct 28, 2022 · 1 comment · Fixed by #4
Closed

model property option hidden is ignored #3

shubhamp-sf opened this issue Oct 28, 2022 · 1 comment · Fixed by #4
Assignees
Labels

Comments

@shubhamp-sf
Copy link
Collaborator

Description of the bug
Loopback supports hidden properties that is used when user don't want then in response bodies. While using the SequelizeRepository this behavior is ignored.

Expected behavior
SequelizeRepository's methods should not return any of the hidden properties specified in the response body. Regardless of the fields filter option.

Additional context
There are two ways user can specify hidden properties.

  1. Model settings hiddenProperties
@model({
  settings: {
    hiddenProperties: ['password']
  }
})
  1. At property level
// ...
@property({type: 'string', hidden: true})
// ...
@yeshamavani
Copy link
Collaborator

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants