We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--model-name-prefix
1 parent 3347204 commit 0ae50f5Copy full SHA for 0ae50f5
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java
@@ -671,7 +671,13 @@ public String getTypeDeclaration(Schema p) {
671
return getSchemaType(p) + "[str, " + getCollectionItemTypeDeclaration(inner) + "]";
672
}
673
674
- String openAPIType = getSchemaType(p);
+ String openAPIType = super.getSchemaType(p);
675
+
676
+ if (openAPIType == null) {
677
+ LOGGER.error("OpenAPI Type for {} is null. Default to UNKNOWN_OPENAPI_TYPE instead.", p.getName());
678
+ openAPIType = "UNKNOWN_OPENAPI_TYPE";
679
+ }
680
681
if (typeMapping.containsKey(openAPIType)) {
682
return typeMapping.get(openAPIType);
683
0 commit comments