-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add support for readOnly and writeOnly properties #30
Comments
Link to specification |
@jormaechea for the two parts:
Thanks for these awesome bug reports! |
Glad to help with issue reporting! I'd also contribute, but I'm not familiar with go.. 😞 |
@danielgtaylor you had no news about the upstream issue yet? 😞 |
FYI getkin/kin-openapi#71 is closed and a new release pushed, please take a look :) |
Summary
Apisprout does not support
readOnly
andwriteOnly
attributes of properties.Steps to reproduce
Mock this schema:
Actual result
In GET operation, the example includes
writeOnlyProp
. In POST operation it requiresreadOnlyProp
.Expected result
writeOnly
properties in auto-generated examples. The response should be:readOnly
properties in the request body. This request body should be valid:The text was updated successfully, but these errors were encountered: