Readonly properties are no longer readonly when using backing store #499
Labels
priority:p2
Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 days
type: bug
A broken experience
type:regression
A bug from previous release
While generating a c# client with kiota version 1.21.0, I noticed that readonly properties are no longer readonly when using a backing store.
My readonly property was generated like this:
public double? AveragePriceGross { get; private set; }
After re-generating the client with a backing store, it now looks like this and I can set the property, even though it is marked as readonly in my api definition
I understand that with backing store enabled, one can always change the property by manually changing the value in the underlying store, but I think the behavior should be consistent and the generated properties should either always or never be readonly, independent of whether a backing store is used.
The text was updated successfully, but these errors were encountered: