forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/5.4.x' into 6.0.x
This commit is contained in:
@@ -221,7 +221,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -235,21 +237,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Patch<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -279,7 +289,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -293,24 +305,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/another-fake/dummy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("Call123TestSpecialTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
@@ -221,20 +221,28 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -271,23 +279,30 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<InlineResponseDefault>("/foo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FooGet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -221,7 +221,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -235,10 +237,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
@@ -250,11 +258,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Patch<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -284,7 +294,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -298,12 +310,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = modelClient;
|
||||
|
||||
@@ -314,13 +331,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PatchAsync<ModelClient>("/fake_classname_test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TestClassname", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
@@ -586,7 +586,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -600,10 +602,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@@ -632,11 +640,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/pet", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("AddPet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -665,7 +675,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -679,12 +691,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@@ -712,13 +729,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/pet", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("AddPet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -755,10 +774,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (apiKey != null)
|
||||
@@ -775,11 +800,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeletePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -818,12 +845,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (apiKey != null)
|
||||
@@ -839,13 +871,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeletePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -873,7 +907,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -887,10 +923,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
@@ -919,11 +961,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<List<Pet>>("/pet/findByStatus", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByStatus", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -953,7 +997,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -967,12 +1013,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "status", status));
|
||||
|
||||
@@ -1000,13 +1051,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<List<Pet>>("/pet/findByStatus", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByStatus", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1036,7 +1089,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1050,10 +1105,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
@@ -1082,11 +1143,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<List<Pet>>("/pet/findByTags", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1118,7 +1181,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1132,12 +1197,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("csv", "tags", tags));
|
||||
|
||||
@@ -1165,13 +1235,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<List<Pet>>("/pet/findByTags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("FindPetsByTags", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1209,10 +1281,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
@@ -1224,11 +1302,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Pet>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetPetById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1268,12 +1348,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
|
||||
@@ -1284,13 +1369,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Pet>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetPetById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1317,7 +1404,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1331,10 +1420,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@@ -1363,11 +1458,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/pet", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1396,7 +1493,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1410,12 +1509,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = pet;
|
||||
|
||||
@@ -1443,13 +1547,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/pet", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePet", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1489,10 +1595,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (name != null)
|
||||
@@ -1513,11 +1625,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePetWithForm", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1559,12 +1673,17 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (name != null)
|
||||
@@ -1584,13 +1703,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/pet/{petId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdatePetWithForm", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1632,10 +1753,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@@ -1656,11 +1783,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<ApiResponse>("/pet/{petId}/uploadImage", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1704,12 +1833,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@@ -1729,13 +1863,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<ApiResponse>("/pet/{petId}/uploadImage", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1767,7 +1903,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'requiredFile' is set
|
||||
if (requiredFile == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1781,10 +1919,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@@ -1802,11 +1946,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<ApiResponse>("/fake/{petId}/uploadImageWithRequiredFile", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFileWithRequiredFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1840,7 +1986,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'requiredFile' is set
|
||||
if (requiredFile == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1854,12 +2002,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("petId", Org.OpenAPITools.Client.ClientUtils.ParameterToString(petId)); // path parameter
|
||||
if (additionalMetadata != null)
|
||||
@@ -1876,13 +2029,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<ApiResponse>("/fake/{petId}/uploadImageWithRequiredFile", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UploadFileWithRequiredFile", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
@@ -345,7 +345,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -357,21 +359,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -400,7 +410,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -412,24 +424,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/store/order/{order_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -464,10 +483,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
@@ -478,11 +503,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -519,12 +546,17 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
// authentication (api_key) required
|
||||
@@ -534,13 +566,15 @@ namespace Org.OpenAPITools.Api
|
||||
}
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Dictionary<string, int>>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -578,21 +612,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -632,24 +674,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("order_id", Org.OpenAPITools.Client.ClientUtils.ParameterToString(orderId)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Order>("/store/order/{order_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetOrderById", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -677,7 +726,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -692,21 +743,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Order>("/store/order", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -736,7 +795,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -751,24 +812,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = order;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Order>("/store/order", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("PlaceOrder", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
@@ -517,7 +517,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -530,21 +532,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -573,7 +583,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -586,24 +598,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -630,7 +649,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -643,21 +664,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -686,7 +715,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -699,24 +730,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithArray", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithArrayInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -743,7 +781,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -756,21 +796,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/user/createWithList", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -799,7 +847,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -812,24 +862,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/user/createWithList", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("CreateUsersWithListInput", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -856,7 +913,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -868,21 +927,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Delete<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -911,7 +978,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -923,24 +992,31 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("DeleteUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -968,7 +1044,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -982,21 +1060,29 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<User>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1026,7 +1112,9 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1040,24 +1128,31 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<User>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("GetUserByName", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1087,11 +1182,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'password' is set
|
||||
if (password == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1105,10 +1204,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username));
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password));
|
||||
@@ -1116,11 +1221,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<string>("/user/login", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1152,11 +1259,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'password' is set
|
||||
if (password == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1170,25 +1281,32 @@ namespace Org.OpenAPITools.Api
|
||||
"application/json"
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "username", username));
|
||||
localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "password", password));
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<string>("/user/login", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LoginUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1221,20 +1339,28 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Get<Object>("/user/logout", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1269,23 +1395,30 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.GetAsync<Object>("/user/logout", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("LogoutUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1314,11 +1447,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
|
||||
@@ -1331,10 +1468,16 @@ namespace Org.OpenAPITools.Api
|
||||
};
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = user;
|
||||
@@ -1342,11 +1485,13 @@ namespace Org.OpenAPITools.Api
|
||||
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/user/{username}", localVarRequestOptions, this.Configuration);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
@@ -1377,11 +1522,15 @@ namespace Org.OpenAPITools.Api
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
{
|
||||
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
}
|
||||
|
||||
|
||||
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
|
||||
@@ -1394,25 +1543,32 @@ namespace Org.OpenAPITools.Api
|
||||
string[] _accepts = new string[] {
|
||||
};
|
||||
|
||||
|
||||
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
|
||||
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
if (localVarContentType != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
|
||||
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
if (localVarAccept != null)
|
||||
{
|
||||
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
|
||||
}
|
||||
|
||||
localVarRequestOptions.PathParameters.Add("username", Org.OpenAPITools.Client.ClientUtils.ParameterToString(username)); // path parameter
|
||||
localVarRequestOptions.Data = user;
|
||||
|
||||
|
||||
// make the HTTP request
|
||||
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/user/{username}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("UpdateUser", localVarResponse);
|
||||
if (_exception != null) throw _exception;
|
||||
if (_exception != null)
|
||||
{
|
||||
throw _exception;
|
||||
}
|
||||
}
|
||||
|
||||
return localVarResponse;
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System;
|
||||
@@ -82,7 +92,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="method">HTTP method</param>
|
||||
/// <param name="path">Path</param>
|
||||
/// <param name="requestOptions">Request options</param>
|
||||
/// <returns></returns>
|
||||
/// <returns>Http signed headers</returns>
|
||||
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
|
||||
{
|
||||
const string HEADER_REQUEST_TARGET = "(request-target)";
|
||||
@@ -133,7 +143,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
else
|
||||
{
|
||||
httpValues.Add(HttpUtility.UrlEncode(parameter.Key), parameter.Value[0]);
|
||||
httpValues.Add(HttpUtility.UrlEncode(parameter.Key), parameter.Value[0]);
|
||||
}
|
||||
#else
|
||||
if (parameter.Value.Count > 1)
|
||||
@@ -178,7 +188,6 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception(string.Format("{0} not supported", HashAlgorithm));
|
||||
}
|
||||
|
||||
|
||||
foreach (var header in HttpSigningHeader)
|
||||
{
|
||||
if (header.Equals(HEADER_REQUEST_TARGET))
|
||||
@@ -236,7 +245,6 @@ namespace Org.OpenAPITools.Client
|
||||
foreach (var keyVal in HttpSignatureHeader)
|
||||
{
|
||||
headerValuesList.Add(string.Format("{0}: {1}", keyVal.Key, keyVal.Value));
|
||||
|
||||
}
|
||||
//Concatenate headers value separated by new line
|
||||
var headerValuesString = string.Join("\n", headerValuesList);
|
||||
@@ -252,7 +260,11 @@ namespace Org.OpenAPITools.Client
|
||||
{
|
||||
headerSignatureStr = GetECDSASignature(signatureStringHash);
|
||||
}
|
||||
var cryptographicScheme = "hs2019";
|
||||
else
|
||||
{
|
||||
throw new Exception(string.Format("Private key type {0} not supported", keyType));
|
||||
}
|
||||
const string cryptographicScheme = "hs2019";
|
||||
var authorizationHeaderValue = string.Format("Signature keyId=\"{0}\",algorithm=\"{1}\"",
|
||||
KeyId, cryptographicScheme);
|
||||
|
||||
@@ -268,9 +280,7 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
authorizationHeaderValue += string.Format(",headers=\"{0}\",signature=\"{1}\"",
|
||||
headersKeysString, headerSignatureStr);
|
||||
|
||||
HttpSignedRequestHeader.Add(HEADER_AUTHORIZATION, authorizationHeaderValue);
|
||||
|
||||
return HttpSignedRequestHeader;
|
||||
}
|
||||
|
||||
@@ -302,14 +312,17 @@ namespace Org.OpenAPITools.Client
|
||||
var signedbytes = rsa.SignHash(stringToSign, HashAlgorithm, RSASignaturePadding.Pkcs1);
|
||||
return Convert.ToBase64String(signedbytes);
|
||||
}
|
||||
return string.Empty;
|
||||
else
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ECDSA signature
|
||||
/// </summary>
|
||||
/// <param name="dataToSign"></param>
|
||||
/// <returns></returns>
|
||||
/// <returns>ECDSA signature</returns>
|
||||
private string GetECDSASignature(byte[] dataToSign)
|
||||
{
|
||||
if (!File.Exists(KeyFilePath))
|
||||
@@ -317,8 +330,8 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception("key file path does not exist.");
|
||||
}
|
||||
|
||||
var ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----";
|
||||
var ecKeyFooter = "-----END EC PRIVATE KEY-----";
|
||||
const string ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----";
|
||||
const string ecKeyFooter = "-----END EC PRIVATE KEY-----";
|
||||
var keyStr = File.ReadAllText(KeyFilePath);
|
||||
var ecKeyBase64String = keyStr.Replace(ecKeyHeader, "").Replace(ecKeyFooter, "").Trim();
|
||||
var keyBytes = System.Convert.FromBase64String(ecKeyBase64String);
|
||||
@@ -355,10 +368,9 @@ namespace Org.OpenAPITools.Client
|
||||
#else
|
||||
throw new Exception("ECDSA signing is supported only on NETCOREAPP3_0 and above");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
private byte[] ConvertToECDSAANS1Format(byte[] signedBytes)
|
||||
private byte[] ConvertToECDSAANS1Format(byte[] signedBytes)
|
||||
{
|
||||
var derBytes = new List<byte>();
|
||||
byte derLength = 68; //default length for ECDSA code signing bit 0x44
|
||||
@@ -481,7 +493,7 @@ namespace Org.OpenAPITools.Client
|
||||
byte[] salt = new byte[saltstr.Length / 2];
|
||||
for (int i = 0; i < salt.Length; i++)
|
||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||
if (!(str.ReadLine() == ""))
|
||||
if (str.ReadLine() != "")
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -512,7 +524,7 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
private RSACryptoServiceProvider DecodeRSAPrivateKey(byte[] privkey)
|
||||
{
|
||||
byte[] MODULUS, E, D, P, Q, DP, DQ, IQ;
|
||||
byte[] bytesModulus, bytesE, bytesD, bytesP, bytesQ, bytesDP, bytesDQ, bytesIQ;
|
||||
|
||||
// --------- Set up stream to decode the asn.1 encoded RSA private key ------
|
||||
MemoryStream mem = new MemoryStream(privkey);
|
||||
@@ -549,40 +561,40 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
//------ all private key components are Integer sequences ----
|
||||
elems = GetIntegerSize(binr);
|
||||
MODULUS = binr.ReadBytes(elems);
|
||||
bytesModulus = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
E = binr.ReadBytes(elems);
|
||||
bytesE = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
D = binr.ReadBytes(elems);
|
||||
bytesD = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
P = binr.ReadBytes(elems);
|
||||
bytesP = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
Q = binr.ReadBytes(elems);
|
||||
bytesQ = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
DP = binr.ReadBytes(elems);
|
||||
bytesDP = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
DQ = binr.ReadBytes(elems);
|
||||
bytesDQ = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
IQ = binr.ReadBytes(elems);
|
||||
bytesIQ = binr.ReadBytes(elems);
|
||||
|
||||
// ------- create RSACryptoServiceProvider instance and initialize with public key -----
|
||||
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
|
||||
RSAParameters RSAparams = new RSAParameters();
|
||||
RSAparams.Modulus = MODULUS;
|
||||
RSAparams.Exponent = E;
|
||||
RSAparams.D = D;
|
||||
RSAparams.P = P;
|
||||
RSAparams.Q = Q;
|
||||
RSAparams.DP = DP;
|
||||
RSAparams.DQ = DQ;
|
||||
RSAparams.InverseQ = IQ;
|
||||
RSAparams.Modulus = bytesModulus;
|
||||
RSAparams.Exponent = bytesE;
|
||||
RSAparams.D = bytesD;
|
||||
RSAparams.P = bytesP;
|
||||
RSAparams.Q = bytesQ;
|
||||
RSAparams.DP = bytesDP;
|
||||
RSAparams.DQ = bytesDQ;
|
||||
RSAparams.InverseQ = bytesIQ;
|
||||
RSA.ImportParameters(RSAparams);
|
||||
return RSA;
|
||||
}
|
||||
@@ -637,7 +649,7 @@ namespace Org.OpenAPITools.Client
|
||||
private byte[] GetEncryptedKey(byte[] salt, SecureString secpswd, int count, int miter)
|
||||
{
|
||||
IntPtr unmanagedPswd = IntPtr.Zero;
|
||||
int HASHLENGTH = 16; //MD5 bytes
|
||||
const int HASHLENGTH = 16; //MD5 bytes
|
||||
byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store concatenated Mi hashed results
|
||||
|
||||
byte[] psbytes = new byte[secpswd.Length];
|
||||
@@ -670,7 +682,9 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
result = md5.ComputeHash(result);
|
||||
}
|
||||
Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //concatenate to keymaterial
|
||||
}
|
||||
byte[] deskey = new byte[24];
|
||||
@@ -708,7 +722,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// Detect the key type from the pem file.
|
||||
/// </summary>
|
||||
/// <param name="keyFilePath">key file path in pem format</param>
|
||||
/// <returns></returns>
|
||||
/// <returns>Private Key Type</returns>
|
||||
private PrivateKeyType GetKeyType(string keyFilePath)
|
||||
{
|
||||
if (!File.Exists(keyFilePath))
|
||||
@@ -716,39 +730,37 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception("Key file path does not exist.");
|
||||
}
|
||||
|
||||
var ecPrivateKeyHeader = "BEGIN EC PRIVATE KEY";
|
||||
var ecPrivateKeyFooter = "END EC PRIVATE KEY";
|
||||
var rsaPrivateKeyHeader = "BEGIN RSA PRIVATE KEY";
|
||||
var rsaPrivateFooter = "END RSA PRIVATE KEY";
|
||||
const string ecPrivateKeyHeader = "BEGIN EC PRIVATE KEY";
|
||||
const string ecPrivateKeyFooter = "END EC PRIVATE KEY";
|
||||
const string rsaPrivateKeyHeader = "BEGIN RSA PRIVATE KEY";
|
||||
const string rsaPrivateFooter = "END RSA PRIVATE KEY";
|
||||
//var pkcs8Header = "BEGIN PRIVATE KEY";
|
||||
//var pkcs8Footer = "END PRIVATE KEY";
|
||||
var keyType = PrivateKeyType.None;
|
||||
PrivateKeyType keyType;
|
||||
var key = File.ReadAllLines(keyFilePath);
|
||||
|
||||
if (key[0].ToString().Contains(rsaPrivateKeyHeader) &&
|
||||
if (key[0].Contains(rsaPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(rsaPrivateFooter))
|
||||
{
|
||||
keyType = PrivateKeyType.RSA;
|
||||
}
|
||||
else if (key[0].ToString().Contains(ecPrivateKeyHeader) &&
|
||||
else if (key[0].Contains(ecPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(ecPrivateKeyFooter))
|
||||
{
|
||||
keyType = PrivateKeyType.ECDSA;
|
||||
}
|
||||
else if (key[0].ToString().Contains(ecPrivateKeyHeader) &&
|
||||
else if (key[0].Contains(ecPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(ecPrivateKeyFooter))
|
||||
{
|
||||
|
||||
/* this type of key can hold many type different types of private key, but here due lack of pem header
|
||||
Considering this as EC key
|
||||
*/
|
||||
// this type of key can hold many type different types of private key, but here due lack of pem header
|
||||
// Considering this as EC key
|
||||
//TODO :- update the key based on oid
|
||||
keyType = PrivateKeyType.ECDSA;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Either the key is invalid or key is not supported");
|
||||
|
||||
}
|
||||
return keyType;
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
@@ -315,23 +315,41 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapProperty.GetHashCode();
|
||||
}
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapOfMapProperty.GetHashCode();
|
||||
}
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Anytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
}
|
||||
if (this.EmptyMap != null)
|
||||
hashCode = hashCode * 59 + this.EmptyMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.EmptyMap.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Animal {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
@@ -167,11 +167,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Color.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ApiResponse {\n");
|
||||
sb.Append(" Code: ").Append(Code).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@@ -178,13 +178,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Code.GetHashCode();
|
||||
if (this.Type != null)
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
}
|
||||
if (this.Message != null)
|
||||
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Message.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Apple {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
@@ -152,11 +152,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Origin.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AppleReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
@@ -153,8 +153,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Mealy.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayArrayNumber: ").Append(ArrayArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayNumber: ").Append(ArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayTest {\n");
|
||||
sb.Append(" ArrayOfString: ").Append(ArrayOfString).Append("\n");
|
||||
sb.Append(" ArrayArrayOfInteger: ").Append(ArrayArrayOfInteger).Append("\n");
|
||||
@@ -179,13 +179,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayOfString != null)
|
||||
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayOfString.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfInteger != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfInteger.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfModel != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfModel.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Banana {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BananaReq {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
@@ -148,8 +148,8 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BasquePig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Capitalization {\n");
|
||||
sb.Append(" SmallCamel: ").Append(SmallCamel).Append("\n");
|
||||
sb.Append(" CapitalCamel: ").Append(CapitalCamel).Append("\n");
|
||||
@@ -261,19 +261,33 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SmallCamel != null)
|
||||
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallCamel.GetHashCode();
|
||||
}
|
||||
if (this.CapitalCamel != null)
|
||||
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalCamel.GetHashCode();
|
||||
}
|
||||
if (this.SmallSnake != null)
|
||||
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallSnake.GetHashCode();
|
||||
}
|
||||
if (this.CapitalSnake != null)
|
||||
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalSnake.GetHashCode();
|
||||
}
|
||||
if (this.SCAETHFlowPoints != null)
|
||||
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SCAETHFlowPoints.GetHashCode();
|
||||
}
|
||||
if (this.ATT_NAME != null)
|
||||
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ATT_NAME.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Cat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
@@ -137,9 +137,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -161,7 +163,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class CatAllOf {\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Category {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@@ -163,11 +163,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@@ -179,10 +179,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -204,7 +208,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCatAllOf {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
@@ -167,10 +167,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ClassModel {\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ComplexQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DanishPig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DeprecatedObject {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Dog {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
@@ -138,9 +138,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -162,7 +166,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DogAllOf {\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
@@ -199,13 +199,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.MainShape != null)
|
||||
hashCode = hashCode * 59 + this.MainShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
}
|
||||
if (this.ShapeOrNull != null)
|
||||
hashCode = hashCode * 59 + this.ShapeOrNull.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeOrNull.GetHashCode();
|
||||
}
|
||||
if (this.NullableShape != null)
|
||||
hashCode = hashCode * 59 + this.NullableShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableShape.GetHashCode();
|
||||
}
|
||||
if (this.Shapes != null)
|
||||
hashCode = hashCode * 59 + this.Shapes.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumArrays {\n");
|
||||
sb.Append(" JustSymbol: ").Append(JustSymbol).Append("\n");
|
||||
sb.Append(" ArrayEnum: ").Append(ArrayEnum).Append("\n");
|
||||
@@ -196,10 +196,12 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumTest {\n");
|
||||
sb.Append(" EnumString: ").Append(EnumString).Append("\n");
|
||||
sb.Append(" EnumStringRequired: ").Append(EnumStringRequired).Append("\n");
|
||||
@@ -472,17 +472,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumString.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EquilateralTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class File {\n");
|
||||
sb.Append(" SourceURI: ").Append(SourceURI).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -126,9 +126,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SourceURI != null)
|
||||
hashCode = hashCode * 59 + this.SourceURI.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SourceURI.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class FileSchemaTestClass {\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
sb.Append(" Files: ").Append(Files).Append("\n");
|
||||
@@ -152,11 +152,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.File.GetHashCode();
|
||||
}
|
||||
if (this.Files != null)
|
||||
hashCode = hashCode * 59 + this.Files.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Files.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Foo {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -124,9 +124,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class FormatTest {\n");
|
||||
sb.Append(" Integer: ").Append(Integer).Append("\n");
|
||||
sb.Append(" Int32: ").Append(Int32).Append("\n");
|
||||
@@ -548,33 +548,53 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Float.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Double.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Decimal.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Integer.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int32.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Int64.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Number.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Float.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Double.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Decimal.GetHashCode();
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.String.GetHashCode();
|
||||
}
|
||||
if (this.Byte != null)
|
||||
hashCode = hashCode * 59 + this.Byte.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Byte.GetHashCode();
|
||||
}
|
||||
if (this.Binary != null)
|
||||
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Binary.GetHashCode();
|
||||
}
|
||||
if (this.Date != null)
|
||||
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Date.GetHashCode();
|
||||
}
|
||||
if (this.DateTime != null)
|
||||
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateTime.GetHashCode();
|
||||
}
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Password.GetHashCode();
|
||||
}
|
||||
if (this.PatternWithDigits != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigits.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PatternWithDigits.GetHashCode();
|
||||
}
|
||||
if (this.PatternWithDigitsAndDelimiter != null)
|
||||
hashCode = hashCode * 59 + this.PatternWithDigitsAndDelimiter.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PatternWithDigitsAndDelimiter.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -587,61 +607,61 @@ namespace Org.OpenAPITools.Model
|
||||
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Integer (int) maximum
|
||||
if(this.Integer > (int)100)
|
||||
if (this.Integer > (int)100)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Integer (int) minimum
|
||||
if(this.Integer < (int)10)
|
||||
if (this.Integer < (int)10)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" });
|
||||
}
|
||||
|
||||
// Int32 (int) maximum
|
||||
if(this.Int32 > (int)200)
|
||||
if (this.Int32 > (int)200)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Int32 (int) minimum
|
||||
if(this.Int32 < (int)20)
|
||||
if (this.Int32 < (int)20)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
|
||||
}
|
||||
|
||||
// Number (decimal) maximum
|
||||
if(this.Number > (decimal)543.2)
|
||||
if (this.Number > (decimal)543.2)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Number (decimal) minimum
|
||||
if(this.Number < (decimal)32.1)
|
||||
if (this.Number < (decimal)32.1)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
|
||||
}
|
||||
|
||||
// Float (float) maximum
|
||||
if(this.Float > (float)987.6)
|
||||
if (this.Float > (float)987.6)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" });
|
||||
}
|
||||
|
||||
// Float (float) minimum
|
||||
if(this.Float < (float)54.3)
|
||||
if (this.Float < (float)54.3)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" });
|
||||
}
|
||||
|
||||
// Double (double) maximum
|
||||
if(this.Double > (double)123.4)
|
||||
if (this.Double > (double)123.4)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" });
|
||||
}
|
||||
|
||||
// Double (double) minimum
|
||||
if(this.Double < (double)67.8)
|
||||
if (this.Double < (double)67.8)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" });
|
||||
}
|
||||
@@ -654,13 +674,13 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
|
||||
// Password (string) maxLength
|
||||
if(this.Password != null && this.Password.Length > 64)
|
||||
if (this.Password != null && this.Password.Length > 64)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than 64.", new [] { "Password" });
|
||||
}
|
||||
|
||||
// Password (string) minLength
|
||||
if(this.Password != null && this.Password.Length < 10)
|
||||
if (this.Password != null && this.Password.Length < 10)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be greater than 10.", new [] { "Password" });
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class GrandparentAnimal {\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -141,9 +141,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.PetType != null)
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class HasOnlyReadOnly {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" Foo: ").Append(Foo).Append("\n");
|
||||
@@ -129,11 +129,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.Foo != null)
|
||||
hashCode = hashCode * 59 + this.Foo.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Foo.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class HealthCheckResult {\n");
|
||||
sb.Append(" NullableMessage: ").Append(NullableMessage).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.NullableMessage != null)
|
||||
hashCode = hashCode * 59 + this.NullableMessage.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableMessage.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class InlineResponseDefault {\n");
|
||||
sb.Append(" String: ").Append(String).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.String != null)
|
||||
hashCode = hashCode * 59 + this.String.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.String.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class IsoscelesTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@@ -157,9 +157,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class List {\n");
|
||||
sb.Append(" _123List: ").Append(_123List).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this._123List != null)
|
||||
hashCode = hashCode * 59 + this._123List.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._123List.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class MapTest {\n");
|
||||
sb.Append(" MapMapOfString: ").Append(MapMapOfString).Append("\n");
|
||||
sb.Append(" MapOfEnumString: ").Append(MapOfEnumString).Append("\n");
|
||||
@@ -229,14 +229,22 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapMapOfString != null)
|
||||
hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapMapOfString.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.MapOfEnumString.GetHashCode();
|
||||
if (this.DirectMap != null)
|
||||
hashCode = hashCode * 59 + this.DirectMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DirectMap.GetHashCode();
|
||||
}
|
||||
if (this.IndirectMap != null)
|
||||
hashCode = hashCode * 59 + this.IndirectMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IndirectMap.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" DateTime: ").Append(DateTime).Append("\n");
|
||||
@@ -179,13 +179,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
if (this.DateTime != null)
|
||||
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateTime.GetHashCode();
|
||||
}
|
||||
if (this.Map != null)
|
||||
hashCode = hashCode * 59 + this.Map.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Map.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Model200Response {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
@@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ModelClient {\n");
|
||||
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -125,9 +125,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this._Client != null)
|
||||
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._Client.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Name {\n");
|
||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||
@@ -189,13 +189,17 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this._Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.SnakeCase.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this._Name.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode();
|
||||
if (this.Property != null)
|
||||
hashCode = hashCode * 59 + this.Property.GetHashCode();
|
||||
hashCode = hashCode * 59 + this._123Number.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Property.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this._123Number.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
@@ -416,29 +416,53 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.IntegerProp != null)
|
||||
hashCode = hashCode * 59 + this.IntegerProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
}
|
||||
if (this.NumberProp != null)
|
||||
hashCode = hashCode * 59 + this.NumberProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NumberProp.GetHashCode();
|
||||
}
|
||||
if (this.BooleanProp != null)
|
||||
hashCode = hashCode * 59 + this.BooleanProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.BooleanProp.GetHashCode();
|
||||
}
|
||||
if (this.StringProp != null)
|
||||
hashCode = hashCode * 59 + this.StringProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.StringProp.GetHashCode();
|
||||
}
|
||||
if (this.DateProp != null)
|
||||
hashCode = hashCode * 59 + this.DateProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DateProp.GetHashCode();
|
||||
}
|
||||
if (this.DatetimeProp != null)
|
||||
hashCode = hashCode * 59 + this.DatetimeProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DatetimeProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ArrayAndItemsNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayAndItemsNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ArrayItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ArrayItemsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayItemsNullable.GetHashCode();
|
||||
}
|
||||
if (this.ObjectNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ObjectAndItemsNullableProp != null)
|
||||
hashCode = hashCode * 59 + this.ObjectAndItemsNullableProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectAndItemsNullableProp.GetHashCode();
|
||||
}
|
||||
if (this.ObjectItemsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ObjectItemsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectItemsNullable.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NumberOnly {\n");
|
||||
sb.Append(" JustNumber: ").Append(JustNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustNumber.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
@@ -209,14 +209,22 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Uuid != null)
|
||||
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.DeprecatedRef != null)
|
||||
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode();
|
||||
}
|
||||
if (this.Bars != null)
|
||||
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bars.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Order {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" PetId: ").Append(PetId).Append("\n");
|
||||
@@ -288,15 +288,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetId.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Quantity.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.PetId.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Quantity.GetHashCode();
|
||||
if (this.ShipDate != null)
|
||||
hashCode = hashCode * 59 + this.ShipDate.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Complete.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShipDate.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Status.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Complete.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class OuterComposite {\n");
|
||||
sb.Append(" MyNumber: ").Append(MyNumber).Append("\n");
|
||||
sb.Append(" MyString: ").Append(MyString).Append("\n");
|
||||
@@ -178,12 +178,16 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.MyNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.MyNumber.GetHashCode();
|
||||
if (this.MyString != null)
|
||||
hashCode = hashCode * 59 + this.MyString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.MyBoolean.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MyString.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ParentPet {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -111,7 +111,9 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -133,7 +135,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Pet {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Category: ").Append(Category).Append("\n");
|
||||
@@ -305,18 +305,28 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Category != null)
|
||||
hashCode = hashCode * 59 + this.Category.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Category.GetHashCode();
|
||||
}
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.PhotoUrls != null)
|
||||
hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.PhotoUrls.GetHashCode();
|
||||
}
|
||||
if (this.Tags != null)
|
||||
hashCode = hashCode * 59 + this.Tags.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Tags.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Status.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class QuadrilateralInterface {\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ReadOnlyFirst {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" Baz: ").Append(Baz).Append("\n");
|
||||
@@ -140,11 +140,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.Baz != null)
|
||||
hashCode = hashCode * 59 + this.Baz.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Baz.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Return {\n");
|
||||
sb.Append(" _Return: ").Append(_Return).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -124,9 +124,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this._Return.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this._Return.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ScaleneTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ShapeInterface {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class SimpleQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@@ -168,11 +168,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class SpecialModelName {\n");
|
||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||
@@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode();
|
||||
if (this._SpecialModelName != null)
|
||||
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this._SpecialModelName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Tag {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@@ -151,11 +151,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TriangleInterface {\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -137,9 +137,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class User {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||
@@ -426,30 +426,52 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Username != null)
|
||||
hashCode = hashCode * 59 + this.Username.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Username.GetHashCode();
|
||||
}
|
||||
if (this.FirstName != null)
|
||||
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.FirstName.GetHashCode();
|
||||
}
|
||||
if (this.LastName != null)
|
||||
hashCode = hashCode * 59 + this.LastName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.LastName.GetHashCode();
|
||||
}
|
||||
if (this.Email != null)
|
||||
hashCode = hashCode * 59 + this.Email.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Email.GetHashCode();
|
||||
}
|
||||
if (this.Password != null)
|
||||
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Password.GetHashCode();
|
||||
}
|
||||
if (this.Phone != null)
|
||||
hashCode = hashCode * 59 + this.Phone.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.UserStatus.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Phone.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.UserStatus.GetHashCode();
|
||||
if (this.ObjectWithNoDeclaredProps != null)
|
||||
hashCode = hashCode * 59 + this.ObjectWithNoDeclaredProps.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode();
|
||||
}
|
||||
if (this.ObjectWithNoDeclaredPropsNullable != null)
|
||||
hashCode = hashCode * 59 + this.ObjectWithNoDeclaredPropsNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredPropsNullable.GetHashCode();
|
||||
}
|
||||
if (this.AnyTypeProp != null)
|
||||
hashCode = hashCode * 59 + this.AnyTypeProp.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AnyTypeProp.GetHashCode();
|
||||
}
|
||||
if (this.AnyTypePropNullable != null)
|
||||
hashCode = hashCode * 59 + this.AnyTypePropNullable.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AnyTypePropNullable.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Whale {\n");
|
||||
sb.Append(" HasBaleen: ").Append(HasBaleen).Append("\n");
|
||||
sb.Append(" HasTeeth: ").Append(HasTeeth).Append("\n");
|
||||
@@ -190,12 +190,16 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.HasBaleen.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.HasTeeth.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@@ -192,11 +192,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System;
|
||||
@@ -82,7 +92,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// <param name="method">HTTP method</param>
|
||||
/// <param name="path">Path</param>
|
||||
/// <param name="requestOptions">Request options</param>
|
||||
/// <returns></returns>
|
||||
/// <returns>Http signed headers</returns>
|
||||
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
|
||||
{
|
||||
const string HEADER_REQUEST_TARGET = "(request-target)";
|
||||
@@ -133,7 +143,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
else
|
||||
{
|
||||
httpValues.Add(HttpUtility.UrlEncode(parameter.Key), parameter.Value[0]);
|
||||
httpValues.Add(HttpUtility.UrlEncode(parameter.Key), parameter.Value[0]);
|
||||
}
|
||||
#else
|
||||
if (parameter.Value.Count > 1)
|
||||
@@ -178,7 +188,6 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception(string.Format("{0} not supported", HashAlgorithm));
|
||||
}
|
||||
|
||||
|
||||
foreach (var header in HttpSigningHeader)
|
||||
{
|
||||
if (header.Equals(HEADER_REQUEST_TARGET))
|
||||
@@ -236,7 +245,6 @@ namespace Org.OpenAPITools.Client
|
||||
foreach (var keyVal in HttpSignatureHeader)
|
||||
{
|
||||
headerValuesList.Add(string.Format("{0}: {1}", keyVal.Key, keyVal.Value));
|
||||
|
||||
}
|
||||
//Concatenate headers value separated by new line
|
||||
var headerValuesString = string.Join("\n", headerValuesList);
|
||||
@@ -252,7 +260,11 @@ namespace Org.OpenAPITools.Client
|
||||
{
|
||||
headerSignatureStr = GetECDSASignature(signatureStringHash);
|
||||
}
|
||||
var cryptographicScheme = "hs2019";
|
||||
else
|
||||
{
|
||||
throw new Exception(string.Format("Private key type {0} not supported", keyType));
|
||||
}
|
||||
const string cryptographicScheme = "hs2019";
|
||||
var authorizationHeaderValue = string.Format("Signature keyId=\"{0}\",algorithm=\"{1}\"",
|
||||
KeyId, cryptographicScheme);
|
||||
|
||||
@@ -268,9 +280,7 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
authorizationHeaderValue += string.Format(",headers=\"{0}\",signature=\"{1}\"",
|
||||
headersKeysString, headerSignatureStr);
|
||||
|
||||
HttpSignedRequestHeader.Add(HEADER_AUTHORIZATION, authorizationHeaderValue);
|
||||
|
||||
return HttpSignedRequestHeader;
|
||||
}
|
||||
|
||||
@@ -302,14 +312,17 @@ namespace Org.OpenAPITools.Client
|
||||
var signedbytes = rsa.SignHash(stringToSign, HashAlgorithm, RSASignaturePadding.Pkcs1);
|
||||
return Convert.ToBase64String(signedbytes);
|
||||
}
|
||||
return string.Empty;
|
||||
else
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ECDSA signature
|
||||
/// </summary>
|
||||
/// <param name="dataToSign"></param>
|
||||
/// <returns></returns>
|
||||
/// <returns>ECDSA signature</returns>
|
||||
private string GetECDSASignature(byte[] dataToSign)
|
||||
{
|
||||
if (!File.Exists(KeyFilePath))
|
||||
@@ -317,8 +330,8 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception("key file path does not exist.");
|
||||
}
|
||||
|
||||
var ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----";
|
||||
var ecKeyFooter = "-----END EC PRIVATE KEY-----";
|
||||
const string ecKeyHeader = "-----BEGIN EC PRIVATE KEY-----";
|
||||
const string ecKeyFooter = "-----END EC PRIVATE KEY-----";
|
||||
var keyStr = File.ReadAllText(KeyFilePath);
|
||||
var ecKeyBase64String = keyStr.Replace(ecKeyHeader, "").Replace(ecKeyFooter, "").Trim();
|
||||
var keyBytes = System.Convert.FromBase64String(ecKeyBase64String);
|
||||
@@ -355,10 +368,9 @@ namespace Org.OpenAPITools.Client
|
||||
#else
|
||||
throw new Exception("ECDSA signing is supported only on NETCOREAPP3_0 and above");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
private byte[] ConvertToECDSAANS1Format(byte[] signedBytes)
|
||||
private byte[] ConvertToECDSAANS1Format(byte[] signedBytes)
|
||||
{
|
||||
var derBytes = new List<byte>();
|
||||
byte derLength = 68; //default length for ECDSA code signing bit 0x44
|
||||
@@ -481,7 +493,7 @@ namespace Org.OpenAPITools.Client
|
||||
byte[] salt = new byte[saltstr.Length / 2];
|
||||
for (int i = 0; i < salt.Length; i++)
|
||||
salt[i] = Convert.ToByte(saltstr.Substring(i * 2, 2), 16);
|
||||
if (!(str.ReadLine() == ""))
|
||||
if (str.ReadLine() != "")
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -512,7 +524,7 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
private RSACryptoServiceProvider DecodeRSAPrivateKey(byte[] privkey)
|
||||
{
|
||||
byte[] MODULUS, E, D, P, Q, DP, DQ, IQ;
|
||||
byte[] bytesModulus, bytesE, bytesD, bytesP, bytesQ, bytesDP, bytesDQ, bytesIQ;
|
||||
|
||||
// --------- Set up stream to decode the asn.1 encoded RSA private key ------
|
||||
MemoryStream mem = new MemoryStream(privkey);
|
||||
@@ -549,40 +561,40 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
//------ all private key components are Integer sequences ----
|
||||
elems = GetIntegerSize(binr);
|
||||
MODULUS = binr.ReadBytes(elems);
|
||||
bytesModulus = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
E = binr.ReadBytes(elems);
|
||||
bytesE = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
D = binr.ReadBytes(elems);
|
||||
bytesD = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
P = binr.ReadBytes(elems);
|
||||
bytesP = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
Q = binr.ReadBytes(elems);
|
||||
bytesQ = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
DP = binr.ReadBytes(elems);
|
||||
bytesDP = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
DQ = binr.ReadBytes(elems);
|
||||
bytesDQ = binr.ReadBytes(elems);
|
||||
|
||||
elems = GetIntegerSize(binr);
|
||||
IQ = binr.ReadBytes(elems);
|
||||
bytesIQ = binr.ReadBytes(elems);
|
||||
|
||||
// ------- create RSACryptoServiceProvider instance and initialize with public key -----
|
||||
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
|
||||
RSAParameters RSAparams = new RSAParameters();
|
||||
RSAparams.Modulus = MODULUS;
|
||||
RSAparams.Exponent = E;
|
||||
RSAparams.D = D;
|
||||
RSAparams.P = P;
|
||||
RSAparams.Q = Q;
|
||||
RSAparams.DP = DP;
|
||||
RSAparams.DQ = DQ;
|
||||
RSAparams.InverseQ = IQ;
|
||||
RSAparams.Modulus = bytesModulus;
|
||||
RSAparams.Exponent = bytesE;
|
||||
RSAparams.D = bytesD;
|
||||
RSAparams.P = bytesP;
|
||||
RSAparams.Q = bytesQ;
|
||||
RSAparams.DP = bytesDP;
|
||||
RSAparams.DQ = bytesDQ;
|
||||
RSAparams.InverseQ = bytesIQ;
|
||||
RSA.ImportParameters(RSAparams);
|
||||
return RSA;
|
||||
}
|
||||
@@ -637,7 +649,7 @@ namespace Org.OpenAPITools.Client
|
||||
private byte[] GetEncryptedKey(byte[] salt, SecureString secpswd, int count, int miter)
|
||||
{
|
||||
IntPtr unmanagedPswd = IntPtr.Zero;
|
||||
int HASHLENGTH = 16; //MD5 bytes
|
||||
const int HASHLENGTH = 16; //MD5 bytes
|
||||
byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store concatenated Mi hashed results
|
||||
|
||||
byte[] psbytes = new byte[secpswd.Length];
|
||||
@@ -670,7 +682,9 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
result = md5.ComputeHash(result);
|
||||
}
|
||||
Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //concatenate to keymaterial
|
||||
}
|
||||
byte[] deskey = new byte[24];
|
||||
@@ -708,7 +722,7 @@ namespace Org.OpenAPITools.Client
|
||||
/// Detect the key type from the pem file.
|
||||
/// </summary>
|
||||
/// <param name="keyFilePath">key file path in pem format</param>
|
||||
/// <returns></returns>
|
||||
/// <returns>Private Key Type</returns>
|
||||
private PrivateKeyType GetKeyType(string keyFilePath)
|
||||
{
|
||||
if (!File.Exists(keyFilePath))
|
||||
@@ -716,39 +730,37 @@ namespace Org.OpenAPITools.Client
|
||||
throw new Exception("Key file path does not exist.");
|
||||
}
|
||||
|
||||
var ecPrivateKeyHeader = "BEGIN EC PRIVATE KEY";
|
||||
var ecPrivateKeyFooter = "END EC PRIVATE KEY";
|
||||
var rsaPrivateKeyHeader = "BEGIN RSA PRIVATE KEY";
|
||||
var rsaPrivateFooter = "END RSA PRIVATE KEY";
|
||||
const string ecPrivateKeyHeader = "BEGIN EC PRIVATE KEY";
|
||||
const string ecPrivateKeyFooter = "END EC PRIVATE KEY";
|
||||
const string rsaPrivateKeyHeader = "BEGIN RSA PRIVATE KEY";
|
||||
const string rsaPrivateFooter = "END RSA PRIVATE KEY";
|
||||
//var pkcs8Header = "BEGIN PRIVATE KEY";
|
||||
//var pkcs8Footer = "END PRIVATE KEY";
|
||||
var keyType = PrivateKeyType.None;
|
||||
PrivateKeyType keyType;
|
||||
var key = File.ReadAllLines(keyFilePath);
|
||||
|
||||
if (key[0].ToString().Contains(rsaPrivateKeyHeader) &&
|
||||
if (key[0].Contains(rsaPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(rsaPrivateFooter))
|
||||
{
|
||||
keyType = PrivateKeyType.RSA;
|
||||
}
|
||||
else if (key[0].ToString().Contains(ecPrivateKeyHeader) &&
|
||||
else if (key[0].Contains(ecPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(ecPrivateKeyFooter))
|
||||
{
|
||||
keyType = PrivateKeyType.ECDSA;
|
||||
}
|
||||
else if (key[0].ToString().Contains(ecPrivateKeyHeader) &&
|
||||
else if (key[0].Contains(ecPrivateKeyHeader) &&
|
||||
key[key.Length - 1].ToString().Contains(ecPrivateKeyFooter))
|
||||
{
|
||||
|
||||
/* this type of key can hold many type different types of private key, but here due lack of pem header
|
||||
Considering this as EC key
|
||||
*/
|
||||
// this type of key can hold many type different types of private key, but here due lack of pem header
|
||||
// Considering this as EC key
|
||||
//TODO :- update the key based on oid
|
||||
keyType = PrivateKeyType.ECDSA;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Either the key is invalid or key is not supported");
|
||||
|
||||
}
|
||||
return keyType;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AdditionalPropertiesClass {\n");
|
||||
sb.Append(" MapProperty: ").Append(MapProperty).Append("\n");
|
||||
sb.Append(" MapOfMapProperty: ").Append(MapOfMapProperty).Append("\n");
|
||||
@@ -172,23 +172,41 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.MapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapProperty.GetHashCode();
|
||||
}
|
||||
if (this.MapOfMapProperty != null)
|
||||
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapOfMapProperty.GetHashCode();
|
||||
}
|
||||
if (this.Anytype1 != null)
|
||||
hashCode = hashCode * 59 + this.Anytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Anytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype1.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype2.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesAnytype3.GetHashCode();
|
||||
}
|
||||
if (this.EmptyMap != null)
|
||||
hashCode = hashCode * 59 + this.EmptyMap.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.EmptyMap.GetHashCode();
|
||||
}
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
hashCode = hashCode * 59 + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MapWithUndeclaredPropertiesString.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Animal {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Color: ").Append(Color).Append("\n");
|
||||
@@ -134,11 +134,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.Color != null)
|
||||
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Color.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ApiResponse {\n");
|
||||
sb.Append(" Code: ").Append(Code).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
@@ -125,13 +125,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Code.GetHashCode();
|
||||
if (this.Type != null)
|
||||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
}
|
||||
if (this.Message != null)
|
||||
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Message.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Apple {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Origin: ").Append(Origin).Append("\n");
|
||||
@@ -117,11 +117,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
if (this.Origin != null)
|
||||
hashCode = hashCode * 59 + this.Origin.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Origin.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class AppleReq {\n");
|
||||
sb.Append(" Cultivar: ").Append(Cultivar).Append("\n");
|
||||
sb.Append(" Mealy: ").Append(Mealy).Append("\n");
|
||||
@@ -118,8 +118,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Cultivar != null)
|
||||
hashCode = hashCode * 59 + this.Cultivar.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Mealy.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Cultivar.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.Mealy.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayArrayNumber: ").Append(ArrayArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayOfNumberOnly {\n");
|
||||
sb.Append(" ArrayNumber: ").Append(ArrayNumber).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayNumber != null)
|
||||
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayNumber.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ArrayTest {\n");
|
||||
sb.Append(" ArrayOfString: ").Append(ArrayOfString).Append("\n");
|
||||
sb.Append(" ArrayArrayOfInteger: ").Append(ArrayArrayOfInteger).Append("\n");
|
||||
@@ -126,13 +126,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ArrayOfString != null)
|
||||
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayOfString.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfInteger != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfInteger.GetHashCode();
|
||||
}
|
||||
if (this.ArrayArrayOfModel != null)
|
||||
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ArrayArrayOfModel.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Banana {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -107,9 +107,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BananaReq {\n");
|
||||
sb.Append(" LengthCm: ").Append(LengthCm).Append("\n");
|
||||
sb.Append(" Sweet: ").Append(Sweet).Append("\n");
|
||||
@@ -113,8 +113,8 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.LengthCm.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Sweet.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.LengthCm.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Sweet.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class BasquePig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -120,9 +120,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Capitalization {\n");
|
||||
sb.Append(" SmallCamel: ").Append(SmallCamel).Append("\n");
|
||||
sb.Append(" CapitalCamel: ").Append(CapitalCamel).Append("\n");
|
||||
@@ -154,19 +154,33 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SmallCamel != null)
|
||||
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallCamel.GetHashCode();
|
||||
}
|
||||
if (this.CapitalCamel != null)
|
||||
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalCamel.GetHashCode();
|
||||
}
|
||||
if (this.SmallSnake != null)
|
||||
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SmallSnake.GetHashCode();
|
||||
}
|
||||
if (this.CapitalSnake != null)
|
||||
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.CapitalSnake.GetHashCode();
|
||||
}
|
||||
if (this.SCAETHFlowPoints != null)
|
||||
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SCAETHFlowPoints.GetHashCode();
|
||||
}
|
||||
if (this.ATT_NAME != null)
|
||||
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ATT_NAME.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Cat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
@@ -120,9 +120,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -144,7 +146,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class CatAllOf {\n");
|
||||
sb.Append(" Declawed: ").Append(Declawed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -107,9 +107,11 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Declawed.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Category {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@@ -128,11 +128,15 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.Id.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCat {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
@@ -142,10 +142,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -167,7 +171,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ChildCatAllOf {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" PetType: ").Append(PetType).Append("\n");
|
||||
@@ -131,10 +131,14 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.PetType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
hashCode = (hashCode * 59) + this.PetType.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ClassModel {\n");
|
||||
sb.Append(" Class: ").Append(Class).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Class != null)
|
||||
hashCode = hashCode * 59 + this.Class.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Class.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class ComplexQuadrilateral {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" QuadrilateralType: ").Append(QuadrilateralType).Append("\n");
|
||||
@@ -133,11 +133,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.QuadrilateralType != null)
|
||||
hashCode = hashCode * 59 + this.QuadrilateralType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.QuadrilateralType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DanishPig {\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -120,9 +120,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ClassName != null)
|
||||
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ClassName.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DeprecatedObject {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Name != null)
|
||||
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Name.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Dog {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
@@ -121,9 +121,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
@@ -145,7 +149,10 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
foreach(var x in BaseValidate(validationContext)) yield return x;
|
||||
foreach (var x in BaseValidate(validationContext))
|
||||
{
|
||||
yield return x;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class DogAllOf {\n");
|
||||
sb.Append(" Breed: ").Append(Breed).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -108,9 +108,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Breed != null)
|
||||
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Breed.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
@@ -128,13 +128,21 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
if (this.MainShape != null)
|
||||
hashCode = hashCode * 59 + this.MainShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
}
|
||||
if (this.ShapeOrNull != null)
|
||||
hashCode = hashCode * 59 + this.ShapeOrNull.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeOrNull.GetHashCode();
|
||||
}
|
||||
if (this.NullableShape != null)
|
||||
hashCode = hashCode * 59 + this.NullableShape.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.NullableShape.GetHashCode();
|
||||
}
|
||||
if (this.Shapes != null)
|
||||
hashCode = hashCode * 59 + this.Shapes.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Shapes.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumArrays {\n");
|
||||
sb.Append(" JustSymbol: ").Append(JustSymbol).Append("\n");
|
||||
sb.Append(" ArrayEnum: ").Append(ArrayEnum).Append("\n");
|
||||
@@ -157,10 +157,12 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.JustSymbol.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.ArrayEnum.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EnumTest {\n");
|
||||
sb.Append(" EnumString: ").Append(EnumString).Append("\n");
|
||||
sb.Append(" EnumStringRequired: ").Append(EnumStringRequired).Append("\n");
|
||||
@@ -293,17 +293,19 @@ namespace Org.OpenAPITools.Model
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = hashCode * 59 + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumString.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumStringRequired.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode();
|
||||
hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode();
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class EquilateralTriangle {\n");
|
||||
sb.Append(" ShapeType: ").Append(ShapeType).Append("\n");
|
||||
sb.Append(" TriangleType: ").Append(TriangleType).Append("\n");
|
||||
@@ -133,11 +133,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.ShapeType != null)
|
||||
hashCode = hashCode * 59 + this.ShapeType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.ShapeType.GetHashCode();
|
||||
}
|
||||
if (this.TriangleType != null)
|
||||
hashCode = hashCode * 59 + this.TriangleType.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.TriangleType.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class File {\n");
|
||||
sb.Append(" SourceURI: ").Append(SourceURI).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -109,9 +109,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.SourceURI != null)
|
||||
hashCode = hashCode * 59 + this.SourceURI.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SourceURI.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class FileSchemaTestClass {\n");
|
||||
sb.Append(" File: ").Append(File).Append("\n");
|
||||
sb.Append(" Files: ").Append(Files).Append("\n");
|
||||
@@ -117,11 +117,17 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.File != null)
|
||||
hashCode = hashCode * 59 + this.File.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.File.GetHashCode();
|
||||
}
|
||||
if (this.Files != null)
|
||||
hashCode = hashCode * 59 + this.Files.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Files.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Foo {\n");
|
||||
sb.Append(" Bar: ").Append(Bar).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@@ -109,9 +109,13 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
int hashCode = 41;
|
||||
if (this.Bar != null)
|
||||
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Bar.GetHashCode();
|
||||
}
|
||||
if (this.AdditionalProperties != null)
|
||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user