|
|
@ -584,7 +584,7 @@ class OpenAPIBuilder implements Builder { |
|
|
|
b |
|
|
|
b |
|
|
|
..named = true |
|
|
|
..named = true |
|
|
|
..name = _toDartName(parameter.name) |
|
|
|
..name = _toDartName(parameter.name) |
|
|
|
..required = parameter.required ?? false; |
|
|
|
..required = (parameter.required ?? false) && defaultValueCode == null; |
|
|
|
if (parameter.schema != null) { |
|
|
|
if (parameter.schema != null) { |
|
|
|
b.type = refer( |
|
|
|
b.type = refer( |
|
|
|
_makeNullable( |
|
|
|
_makeNullable( |
|
|
|