Skip to content

Commit e9f3b09

Browse files
authored
[DART] Add standard generated classes as reserved (#8975)
* [DART] Add standard generated classes as reserved * Move StreamedRequest into dart client
1 parent 45a3764 commit e9f3b09

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.openapitools.codegen.languages;
1919

20+
import com.google.common.collect.Sets;
2021
import org.openapitools.codegen.CliOption;
2122
import org.openapitools.codegen.CodegenConstants;
2223
import org.openapitools.codegen.SupportingFile;
@@ -37,6 +38,19 @@ public class DartClientCodegen extends AbstractDartCodegen {
3738
public DartClientCodegen() {
3839
super();
3940

41+
additionalReservedWords.addAll(
42+
Sets.newHashSet(
43+
"StreamedRequest",
44+
"ApiClient",
45+
"QueryParam",
46+
"Authentication",
47+
"HttpBasicAuth",
48+
"HttpBearerAuth",
49+
"ApiKeyAuth",
50+
"OAuth"
51+
)
52+
);
53+
4054
final CliOption serializationLibrary = new CliOption(CodegenConstants.SERIALIZATION_LIBRARY,
4155
"Specify serialization library");
4256
serializationLibrary.setDefault(SERIALIZATION_LIBRARY_NATIVE);

0 commit comments

Comments
 (0)