[Go] Skipping marshalling of readonly fields#14335
[Go] Skipping marshalling of readonly fields#14335wing328 merged 2 commits intoOpenAPITools:masterfrom
Conversation
|
cc @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
Why are readOnly fields skipped in marshaling? ReadOnly indicates you can't change the value. When marshaling the object you want to output the value of that field to the consumer of the REST api. The field SHOULD be included in the json response. When unmarshaling the field should be dropped. I believe this PR is very wrong, can someone explain to me if this is expected behaviour? Thanks |
@samvdb Sorry for the late reply. Yes, you are right, that is a mistake. I am going to address it asap. Thank you. |
|
See PR #15765 |
Fix #12551
Readonly fields to be ignored during
toSerializePR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(6.3.0) (minor release - breaking changes with fallbacks),7.0.x(breaking changes without fallbacks)