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

@@ -6,6 +6,7 @@ a model that includes properties which should stay primitive (String + Boolean)
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**my_number** | [**NumberWithValidations**](NumberWithValidations.md) | | [optional]
**my_readonly** | [**Readonly**](Readonly.md) | | [optional]
**my_string** | **str** | | [optional]
**my_boolean** | **bool** | | [optional]

View File

@@ -0,0 +1,11 @@
# Readonly
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)