Don't include read-only properties in Python examples.#9252
Don't include read-only properties in Python examples.#9252spacether merged 2 commits intoOpenAPITools:masterfrom
Conversation
When using a schema with read-only fields as API inputs, Python generates examples for those: this excludes them.
|
@taxpon @frol @mbohlool @cbornet @kenjones-cisco @tomplus @Jyhess @arun-nalla @spacether 🙇 |
|
@therve these examples should only be omitted when sending data to the server, right? |
Right if we ever generate response code this would need to be changed. |
spacether
left a comment
There was a problem hiding this comment.
Looks good; thank you for your PR!
…9252) * Don't include read-only properties in Python examples. When using a schema with read-only fields as API inputs, Python generates examples for those: this excludes them. * Fix tests
When using a schema with read-only fields as API inputs, Python
generates examples for those: this excludes them.
PR 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,5.1.x,6.0.x