Skip to content

Commit

Permalink
[Samples] Regenerated!
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert committed May 8, 2020
1 parent 7a6fd4e commit e041ad8
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 74 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0-SNAPSHOT
5.0.0-SNAPSHOT
48 changes: 24 additions & 24 deletions samples/client/petstore/dart2/openapi/lib/api/pet_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class PetApi {

List<String> contentTypes = ["application/json","application/xml"];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -46,7 +46,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -86,10 +86,10 @@ class PetApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -104,7 +104,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -144,10 +144,10 @@ class PetApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -162,7 +162,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -203,10 +203,10 @@ class PetApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -221,7 +221,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -261,10 +261,10 @@ class PetApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["api_key"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -279,7 +279,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -319,10 +319,10 @@ class PetApi {

List<String> contentTypes = ["application/json","application/xml"];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -337,7 +337,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -376,10 +376,10 @@ class PetApi {

List<String> contentTypes = ["application/x-www-form-urlencoded"];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if (name != null) {
Expand All @@ -406,7 +406,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -445,10 +445,10 @@ class PetApi {

List<String> contentTypes = ["multipart/form-data"];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["petstore_auth"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if (additionalMetadata != null) {
Expand All @@ -474,7 +474,7 @@ class PetApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down
24 changes: 12 additions & 12 deletions samples/client/petstore/dart2/openapi/lib/api/store_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class StoreApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = [];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -46,7 +46,7 @@ class StoreApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -82,10 +82,10 @@ class StoreApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = ["api_key"];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -100,7 +100,7 @@ class StoreApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -141,10 +141,10 @@ class StoreApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = [];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -159,7 +159,7 @@ class StoreApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down Expand Up @@ -199,10 +199,10 @@ class StoreApi {

List<String> contentTypes = [];

String contentType = contentTypes.isNotEmpty ? contentTypes[0] : "application/json";
String nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
List<String> authNames = [];

if(contentType.startsWith("multipart/form-data")) {
if(nullableContentType != null && nullableContentType.startsWith("multipart/form-data")) {
bool hasFields = false;
MultipartRequest mp = MultipartRequest(null, null);
if(hasFields)
Expand All @@ -217,7 +217,7 @@ class StoreApi {
postBody,
headerParams,
formParams,
contentType,
nullableContentType,
authNames);
return response;
}
Expand Down
Loading

0 comments on commit e041ad8

Please sign in to comment.