Don't include read-only properties in Python examples. (#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
This commit is contained in:
Thomas Hervé
2021-04-14 20:43:28 +02:00
committed by GitHub
parent 9edf70e980
commit 60dcf8613f
11 changed files with 249 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ docs/Pig.md
docs/Quadrilateral.md
docs/QuadrilateralInterface.md
docs/ReadOnlyFirst.md
docs/Readonly.md
docs/ScaleneTriangle.md
docs/Shape.md
docs/ShapeInterface.md
@@ -185,6 +186,7 @@ petstore_api/model/pig.py
petstore_api/model/quadrilateral.py
petstore_api/model/quadrilateral_interface.py
petstore_api/model/read_only_first.py
petstore_api/model/readonly.py
petstore_api/model/scalene_triangle.py
petstore_api/model/shape.py
petstore_api/model/shape_interface.py