Class AbstractPythonCodegen.PydanticType
- java.lang.Object
-
- org.openapitools.codegen.languages.AbstractPythonCodegen.PydanticType
-
- Direct Known Subclasses:
AbstractPythonCodegen.PydanticCoercibleType
- Enclosing class:
- AbstractPythonCodegen
protected class AbstractPythonCodegen.PydanticType extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringclassnameprotected static StringDECIMALprotected Set<String>exampleImportsprotected Set<String>modelImportsprotected AbstractPythonCodegen.PythonImportsmoduleImportsprotected Set<String>postponedExampleImportsprotected Set<String>postponedModelImportsprotected static StringTYPING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypeanyType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypearrayType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypebinaryType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypeboolType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypecollectionItemType(CodegenProperty itemCp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypedateType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypedecimalType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypefromCommon(IJsonSchemaValidationProperties cp)StringgeneratePythonType(CodegenParameter cp)StringgeneratePythonType(CodegenProperty cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypegetType(CodegenParameter cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypegetType(CodegenProperty cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypeintType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypemapType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypemodelType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypenumberType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypestringType(IJsonSchemaValidationProperties cp)protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonTypeuuidType(IJsonSchemaValidationProperties cp)
-
-
-
Field Detail
-
TYPING
protected static final String TYPING
- See Also:
- Constant Field Values
-
DECIMAL
protected static final String DECIMAL
- See Also:
- Constant Field Values
-
moduleImports
protected AbstractPythonCodegen.PythonImports moduleImports
-
classname
protected String classname
-
-
Method Detail
-
arrayType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType arrayType(IJsonSchemaValidationProperties cp)
-
collectionItemType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType collectionItemType(CodegenProperty itemCp)
-
stringType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType stringType(IJsonSchemaValidationProperties cp)
-
mapType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType mapType(IJsonSchemaValidationProperties cp)
-
numberType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType numberType(IJsonSchemaValidationProperties cp)
-
intType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType intType(IJsonSchemaValidationProperties cp)
-
binaryType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType binaryType(IJsonSchemaValidationProperties cp)
-
boolType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType boolType(IJsonSchemaValidationProperties cp)
-
decimalType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType decimalType(IJsonSchemaValidationProperties cp)
-
anyType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType anyType(IJsonSchemaValidationProperties cp)
-
dateType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType dateType(IJsonSchemaValidationProperties cp)
-
uuidType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType uuidType(IJsonSchemaValidationProperties cp)
-
modelType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType modelType(IJsonSchemaValidationProperties cp)
-
fromCommon
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType fromCommon(IJsonSchemaValidationProperties cp)
-
generatePythonType
public String generatePythonType(CodegenProperty cp)
-
getType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType getType(CodegenProperty cp)
-
generatePythonType
public String generatePythonType(CodegenParameter cp)
-
getType
protected org.openapitools.codegen.languages.AbstractPythonCodegen.PythonType getType(CodegenParameter cp)
-
-