kin-openapi icon indicating copy to clipboard operation
kin-openapi copied to clipboard

readOnly validation causing backwards incompatibility

Open simonjpartridge opened this issue 4 years ago • 3 comments

The addition of validation for readOnly https://github.com/getkin/kin-openapi/pull/599 has caused issues for our existing clients when calling our API.

Especially in the flow where a user does a put update, they end up incidentally sending readOnly parameters to the API.

x = GetX
x.Value = "updated"
UpdateX(x)

Ideally I think the readOnly validation should be optional with a configuration option.

Would you be open to this change if we were to raise a PR to implement it?

simonjpartridge avatar Dec 01 '22 10:12 simonjpartridge

Sure! Send away :)

fenollp avatar Dec 02 '22 13:12 fenollp

It's someone working right now on this? @simonjpartridge I can take this if you are not actively working on it.

gczobel avatar Jan 29 '23 08:01 gczobel

Hey @fenollp, please review the PR when you got the time 😏

I have made writeOnly properties validation configurable as well.

orshlom avatar Jan 31 '23 17:01 orshlom