[DART] Add standard generated classes as reserved (#8975)

* [DART] Add standard generated classes as reserved

* Move StreamedRequest into dart client
This commit is contained in:
sbu 2021-03-17 14:53:06 +01:00 committed by GitHub
parent 45a3764180
commit e9f3b09d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@
package org.openapitools.codegen.languages;
import com.google.common.collect.Sets;
import org.openapitools.codegen.CliOption;
import org.openapitools.codegen.CodegenConstants;
import org.openapitools.codegen.SupportingFile;
@ -37,6 +38,19 @@ public class DartClientCodegen extends AbstractDartCodegen {
public DartClientCodegen() {
super();
additionalReservedWords.addAll(
Sets.newHashSet(
"StreamedRequest",
"ApiClient",
"QueryParam",
"Authentication",
"HttpBasicAuth",
"HttpBearerAuth",
"ApiKeyAuth",
"OAuth"
)
);
final CliOption serializationLibrary = new CliOption(CodegenConstants.SERIALIZATION_LIBRARY,
"Specify serialization library");
serializationLibrary.setDefault(SERIALIZATION_LIBRARY_NATIVE);