-
-
Notifications
You must be signed in to change notification settings - Fork 763
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
readOnly=true is not working #350
Comments
Do you mean properties of objects schemas in |
yes,
jsonschema what in use by connexion |
That is a good question. Would you expect Connexion, if present the |
Either seems to be allowed, by my reading of the spec. I'd (slightly) favour "rejected" - ignoring parts of a request and acting on others seems more likely to be confusing. |
@dimbleby I also would go with reject the whole request if a |
@dimbleby @rafaelcaricio "rejecting" the whole message (e.g. with "Bad Request) is not a good idea I think --- a resource definition should IMHO be allowed to be used in a symmetric way, i.e. the resource from I'm not saying that this use case always makes sense, but it should definitely be possible. |
Hmm, swings and roundabouts:
Rejecting read-only fields annoyingly causes the first request to fail. Ignoring read-only fields confusingly allows the second request to succeed, sort of. IMO the "reject" case is the lesser of the evils, but I don't feel all that strongly about it. Edit to the edit: snip some rubbish! |
@hjacobs why would you like to be able to |
Hi ! Thanks |
Any update please? there is related stackoverflow question (there might be a better source for this discussion out there somewhere) |
Support for readOnly has been added in dev-2.0 branch. |
If you want to test it, there is a 2.0 Release Candidate you can install with |
Added this to the 2.0 milestone as it should be fixed with 2.0. |
Can this be closed with the 2.0 release? |
Description
Connexion ignores readOnly=true being defined at OpenAPI properties.
Expected bahaviour
Properties with readOnly=true should not be passed as attributes to the operation function at request, and only used as validation for response.
Actual behaviour
Properties with readOnly=true are if fact passed as attributes to the operation function.
Steps to reproduce
Additional info:
The text was updated successfully, but these errors were encountered: