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.
1 parent 8a8ff1e commit 347938eCopy full SHA for 347938e
1 file changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java
@@ -628,7 +628,7 @@ public ModelsMap postProcessModels(ModelsMap objs) {
628
shouldUseOptional = patchRequestSchemas.contains(model.classname);
629
} else {
630
Boolean schemaUseOptional = (Boolean) model.vendorExtensions.get("x-use-optional");
631
- shouldUseOptional = schemaUseOptional != null && schemaUseOptional;
+ shouldUseOptional = schemaUseOptional == null || schemaUseOptional;
632
}
633
634
if (shouldUseOptional) {
0 commit comments