diff --git a/docs/generators/dart-jaguar.md b/docs/generators/dart-jaguar.md index 90b3f191f48..2fa889b72de 100644 --- a/docs/generators/dart-jaguar.md +++ b/docs/generators/dart-jaguar.md @@ -11,12 +11,12 @@ sidebar_label: dart-jaguar |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| -|browserClient|Is the client browser based| |null| +|browserClient|Is the client browser based (for Dart 1.x only)| |null| |pubName|Name in generated pubspec| |null| |pubVersion|Version in generated pubspec| |null| |pubDescription|Description in generated pubspec| |null| |useEnumExtension|Allow the 'x-enum-values' extension for enums| |null| -|sourceFolder|source folder for generated code| |null| -|supportDart2|support dart2| |true| +|sourceFolder|Source folder for generated code| |null| +|supportDart2|Support Dart 2.x| |true| |nullableFields|Is the null fields should be in the JSON payload| |null| |serialization|Choose serialization format JSON or PROTO is supported| |null| diff --git a/docs/generators/dart.md b/docs/generators/dart.md index 52e6bd7e73b..68a58e7c85c 100644 --- a/docs/generators/dart.md +++ b/docs/generators/dart.md @@ -11,10 +11,10 @@ sidebar_label: dart |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| -|browserClient|Is the client browser based| |null| +|browserClient|Is the client browser based (for Dart 1.x only)| |null| |pubName|Name in generated pubspec| |null| |pubVersion|Version in generated pubspec| |null| |pubDescription|Description in generated pubspec| |null| |useEnumExtension|Allow the 'x-enum-values' extension for enums| |null| -|sourceFolder|source folder for generated code| |null| -|supportDart2|support dart2| |true| +|sourceFolder|Source folder for generated code| |null| +|supportDart2|Support Dart 2.x| |true| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java index 8d9de1271e5..fed61cd4c97 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java @@ -118,13 +118,13 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig { typeMapping.put("URI", "String"); typeMapping.put("ByteArray", "String"); - cliOptions.add(new CliOption(BROWSER_CLIENT, "Is the client browser based")); + cliOptions.add(new CliOption(BROWSER_CLIENT, "Is the client browser based (for Dart 1.x only)")); cliOptions.add(new CliOption(PUB_NAME, "Name in generated pubspec")); cliOptions.add(new CliOption(PUB_VERSION, "Version in generated pubspec")); cliOptions.add(new CliOption(PUB_DESCRIPTION, "Description in generated pubspec")); cliOptions.add(new CliOption(USE_ENUM_EXTENSION, "Allow the 'x-enum-values' extension for enums")); - cliOptions.add(new CliOption(CodegenConstants.SOURCE_FOLDER, "source folder for generated code")); - cliOptions.add(CliOption.newBoolean(SUPPORT_DART2, "support dart2").defaultValue(Boolean.TRUE.toString())); + cliOptions.add(new CliOption(CodegenConstants.SOURCE_FOLDER, "Source folder for generated code")); + cliOptions.add(CliOption.newBoolean(SUPPORT_DART2, "Support Dart 2.x").defaultValue(Boolean.TRUE.toString())); } @Override