loopbackio / loopbackio/loopback-next

Read only properties

Offen
#2,454 8 Kommentare 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@achrinza arbeitet bereits daran.

Seit 20.9.2020.

feature OpenAPI Repository
Vorherrschende Sprache
TypeScript
Sterne
5.1k
Forks
1.1k
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
27

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.