Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden properties when strict is false #5468

Merged
merged 1 commit into from
May 18, 2020
Merged

Hidden properties when strict is false #5468

merged 1 commit into from
May 18, 2020

Conversation

frbuceta
Copy link
Contributor

Fixes #1914 (comment)

Reported by @joel-izaguirre

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@frbuceta frbuceta self-assigned this May 17, 2020
@frbuceta frbuceta added the bug label May 17, 2020
@raymondfeng
Copy link
Contributor

@frbuceta A quick q - I don't see your change involves strict. Please clarify.

@frbuceta
Copy link
Contributor Author

@frbuceta A quick q - I don't see your change involves strict. Please clarify.

When strict is false, the flow goes through here
https://github.com/strongloop/loopback-next/blob/9c46928603786d8eac3498feeb764c9da10f067e/packages/repository/src/model.ts#L229-L231

Then act the code I just implemented in the toObject function

@raymondfeng raymondfeng merged commit 133cc6b into loopbackio:master May 18, 2020
@frbuceta frbuceta deleted the fix/hidden-properties-strict-false branch May 18, 2020 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hidden properties
3 participants