loopbackio / loopbackio/loopback-next
Read only properties
Open
@achrinza is already working on this.
Since Sep 20, 2020.
feature
OpenAPI
Repository
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1.1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 27
Description
Are there any plans of implementing this feature?
I saw a request for LB3: https://github.com/strongloop/loopback/issues/531
But there seems to be no information about this feature for LB4.
Also if anyone knows any workaround for this feature, please share it. 😃
I tried to delete the property that I want to be read only in my `PATCH` function with
`delete project.name`
but this lead to an error. My datasource is a MySQL database and obviously the SQL statement is created wrong, if you just delete the property.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.