Skip to content
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

read only fields appear in JSON request samples for POST request #142

Closed
andrewjtech123 opened this issue Nov 22, 2016 · 10 comments
Closed

Comments

@andrewjtech123
Copy link

Hi,

For our POST request that creates an object we are passing the object as part of the Body of the request. The fields for the request body correctly appear in list of body parameters. However, JSON request example includes read only fields which should not be sent as part of POST request.

read only fields show up

read only dont show up

@RomanHotsiy
Copy link
Member

Which version of ReDoc you use? This issue should to be fixed since version v1.5.1

@RomanHotsiy
Copy link
Member

@andrewjtech123

@andrewjtech123
Copy link
Author

I am using https://github.com/Rebilly/generator-openapi-repo for my project here

https://github.com/andrewjtech123/rebilly-validschema

How can i check my version ? Is there a procedure documented somewhere for upgrades?

@andrewjtech123
Copy link
Author

my script is pointing to latest so it should be working ?

<script src="//rebilly.github.io/ReDoc/releases/latest/redoc.min.js"> </script>

@RomanHotsiy
Copy link
Member

@andrewjtech123, I've just checked your docs and can confirm the issue.
Will look into this tomorrow

@andrewjtech123
Copy link
Author

thank you ! Also root of the object is not displayed. If user were to copy/paste this into body of a api client request it would fail without the root object of the JSON.

@RomanHotsiy
Copy link
Member

Fixed now. Will be available with the next release.

@RomanHotsiy
Copy link
Member

New version 1.6.0 has been released

@andrewjtech123
Copy link
Author

does this also fix the issue with the root of the object not being displayed?

"Also root of the object is not displayed. If user were to copy/paste this into body of a api client request it would fail without the root object of the JSON."

@RomanHotsiy
Copy link
Member

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants