mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-13 08:31:19 +00:00
Improves generator docs: stability + language version added (#11270)
* Adds generatorLanguageVersion and uses it in python generators * Regenerates docs * Adds stability to generator docs * Triple braces generatorLanguageVersion * Regenerates samples * Fixes the python-experimental setup.py file so it works with generatorLanguageVersion * Updates generators readme
This commit is contained in:
@@ -7,8 +7,10 @@ title: Documentation for the python-experimental Generator
|
||||
| Property | Value | Notes |
|
||||
| -------- | ----- | ----- |
|
||||
| generator name | python-experimental | pass this to the generate command after -g |
|
||||
| generator stability | EXPERIMENTAL | |
|
||||
| generator type | CLIENT | |
|
||||
| generator language | Python | |
|
||||
| generator language version | >=3.9 | |
|
||||
| helpTxt | Generates a Python client library<br><br>Features in this generator:<br>- type hints on endpoints and model creation<br>- model parameter names use the spec defined keys and cases<br>- robust composition (oneOf/anyOf/allOf) where paload data is stored in one instance only<br>- endpoint parameter names use the spec defined keys and cases<br>- inline schemas are supported at any location including composition<br>- multiple content types supported in request body and response bodies<br>- run time type checking<br>- quicker load time for python modules (a single endpoint can be imported and used without loading others)<br>- all instances of schemas dynamically inherit from all matching schemas so one can use isinstance to check if validation passed<br>- composed schemas with type constraints supported (type:object + oneOf/anyOf/allOf)<br>- schemas are not coerced/cast. For example string + date are both stored as string, and there is a date accessor<br> - Exceptions: int/float is stored as Decimal, When receiving data from headers it will start as str and may need to be cast for example to int | |
|
||||
|
||||
## CONFIG OPTIONS
|
||||
|
||||
Reference in New Issue
Block a user