forked from loafle/openapi-generator-original
fix: dart2 mustache templates minor improvements (#9539)
* fix: prefer_is_not_empty linter suggestion * fix: annotate_overrides linter suggestion * chore: update samples
This commit is contained in:
@@ -10,6 +10,7 @@ class ApiException implements Exception {
|
||||
Exception innerException;
|
||||
StackTrace stackTrace;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message == null) {
|
||||
return 'ApiException';
|
||||
|
||||
@@ -19,7 +19,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
|
||||
final params = <QueryParam>[];
|
||||
|
||||
// preconditions
|
||||
if (name != null && !name.isEmpty && value != null) {
|
||||
if (name != null && name.isNotEmpty && value != null) {
|
||||
if (value is List) {
|
||||
// get the collection format, default: csv
|
||||
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
|
||||
|
||||
@@ -19,6 +19,7 @@ class ApiException implements Exception {
|
||||
Exception innerException;
|
||||
StackTrace stackTrace;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message == null) {
|
||||
return 'ApiException';
|
||||
|
||||
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
|
||||
final params = <QueryParam>[];
|
||||
|
||||
// preconditions
|
||||
if (name != null && !name.isEmpty && value != null) {
|
||||
if (name != null && name.isNotEmpty && value != null) {
|
||||
if (value is List) {
|
||||
// get the collection format, default: csv
|
||||
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
|
||||
|
||||
@@ -19,6 +19,7 @@ class ApiException implements Exception {
|
||||
Exception innerException;
|
||||
StackTrace stackTrace;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message == null) {
|
||||
return 'ApiException';
|
||||
|
||||
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
|
||||
final params = <QueryParam>[];
|
||||
|
||||
// preconditions
|
||||
if (name != null && !name.isEmpty && value != null) {
|
||||
if (name != null && name.isNotEmpty && value != null) {
|
||||
if (value is List) {
|
||||
// get the collection format, default: csv
|
||||
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
|
||||
|
||||
+1
@@ -19,6 +19,7 @@ class ApiException implements Exception {
|
||||
Exception innerException;
|
||||
StackTrace stackTrace;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
if (message == null) {
|
||||
return 'ApiException';
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
|
||||
final params = <QueryParam>[];
|
||||
|
||||
// preconditions
|
||||
if (name != null && !name.isEmpty && value != null) {
|
||||
if (name != null && name.isNotEmpty && value != null) {
|
||||
if (value is List) {
|
||||
// get the collection format, default: csv
|
||||
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
|
||||
|
||||
Reference in New Issue
Block a user