You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation for the python-pydantic-v1 Generator
METADATA
Property
Value
Notes
generator name
python-pydantic-v1
pass this to the generate command after -g
generator stability
STABLE
generator type
CLIENT
generator language
Python
generator language version
3.7+
generator default templating engine
mustache
helpTxt
Generates a Python client library.
CONFIG OPTIONS
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to configuration docs for more details.
Option
Description
Values
Default
dateFormat
date format for query parameters
%Y-%m-%d
datetimeFormat
datetime format for query parameters
%Y-%m-%dT%H:%M:%S%z
disallowAdditionalPropertiesIfNotPresent
If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
false
The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
true
Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
true
generateSourceCodeOnly
Specifies that only a library source code is to be generated.
false
hideGenerationTimestamp
Hides the generation timestamp when files are generated.
true
library
library template (sub-template) to use: asyncio, tornado (deprecated), urllib3
urllib3
mapNumberTo
Map number to Union[StrictFloat, StrictInt], StrictStr or float.
Union[StrictFloat, StrictInt]
packageName
python package name (convention: snake_case).
openapi_client
packageUrl
python package URL.
null
packageVersion
python package version.
1.0.0
projectName
python project name in setup.py (e.g. petstore-api).
null
recursionLimit
Set the recursion limit. If not set, use the system default value.
null
useOneOfDiscriminatorLookup
Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.