forked from loafle/openapi-generator-original
[C#] Better code format (remove trailing spaces) (#8871)
* remove trailing spaces * remove trailing space, update samples (C#)
This commit is contained in:
parent
89b9802be3
commit
e6947d7c22
@ -19,7 +19,7 @@ namespace {{clientPackage}}
|
|||||||
public class ApiClient
|
public class ApiClient
|
||||||
{
|
{
|
||||||
private readonly Dictionary<String, String> _defaultHeaderMap = new Dictionary<String, String>();
|
private readonly Dictionary<String, String> _defaultHeaderMap = new Dictionary<String, String>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ApiClient" /> class.
|
/// Initializes a new instance of the <see cref="ApiClient" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -29,19 +29,19 @@ namespace {{clientPackage}}
|
|||||||
BasePath = basePath;
|
BasePath = basePath;
|
||||||
RestClient = new RestClient(BasePath);
|
RestClient = new RestClient(BasePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the base path.
|
/// Gets or sets the base path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
public string BasePath { get; set; }
|
public string BasePath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the RestClient.
|
/// Gets or sets the RestClient.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the RestClient</value>
|
/// <value>An instance of the RestClient</value>
|
||||||
public RestClient RestClient { get; set; }
|
public RestClient RestClient { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the default header.
|
/// Gets the default header.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -49,7 +49,7 @@ namespace {{clientPackage}}
|
|||||||
{
|
{
|
||||||
get { return _defaultHeaderMap; }
|
get { return _defaultHeaderMap; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Makes the HTTP request (Sync).
|
/// Makes the HTTP request (Sync).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,12 +63,12 @@ namespace {{clientPackage}}
|
|||||||
/// <param name="authSettings">Authentication settings.</param>
|
/// <param name="authSettings">Authentication settings.</param>
|
||||||
/// <returns>Object</returns>
|
/// <returns>Object</returns>
|
||||||
public Object CallApi(String path, RestSharp.Method method, Dictionary<String, String> queryParams, String postBody,
|
public Object CallApi(String path, RestSharp.Method method, Dictionary<String, String> queryParams, String postBody,
|
||||||
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
|
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
|
||||||
Dictionary<String, FileParameter> fileParams, String[] authSettings)
|
Dictionary<String, FileParameter> fileParams, String[] authSettings)
|
||||||
{
|
{
|
||||||
|
|
||||||
var request = new RestRequest(path, method);
|
var request = new RestRequest(path, method);
|
||||||
|
|
||||||
UpdateParamsForAuth(queryParams, headerParams, authSettings);
|
UpdateParamsForAuth(queryParams, headerParams, authSettings);
|
||||||
|
|
||||||
// add default header, if any
|
// add default header, if any
|
||||||
@ -97,7 +97,7 @@ namespace {{clientPackage}}
|
|||||||
return (Object)RestClient.Execute(request);
|
return (Object)RestClient.Execute(request);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add default header.
|
/// Add default header.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -108,7 +108,7 @@ namespace {{clientPackage}}
|
|||||||
{
|
{
|
||||||
_defaultHeaderMap.Add(key, value);
|
_defaultHeaderMap.Add(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Escape string (url-encoded).
|
/// Escape string (url-encoded).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -118,7 +118,7 @@ namespace {{clientPackage}}
|
|||||||
{
|
{
|
||||||
return RestSharp.Contrib.HttpUtility.UrlEncode(str);
|
return RestSharp.Contrib.HttpUtility.UrlEncode(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create FileParameter based on Stream.
|
/// Create FileParameter based on Stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -132,7 +132,7 @@ namespace {{clientPackage}}
|
|||||||
else
|
else
|
||||||
return FileParameter.Create(name, stream.ReadAsBytes(), "no_file_name_provided");
|
return FileParameter.Create(name, stream.ReadAsBytes(), "no_file_name_provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
|
||||||
/// If parameter is a list of string, join the list with ",".
|
/// If parameter is a list of string, join the list with ",".
|
||||||
@ -155,7 +155,7 @@ namespace {{clientPackage}}
|
|||||||
else
|
else
|
||||||
return Convert.ToString (obj);
|
return Convert.ToString (obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deserialize the JSON string into a proper object.
|
/// Deserialize the JSON string into a proper object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -196,9 +196,9 @@ namespace {{clientPackage}}
|
|||||||
|
|
||||||
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
|
||||||
{
|
{
|
||||||
return ConvertType(content, type);
|
return ConvertType(content, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// at this point, it must be a model (json)
|
// at this point, it must be a model (json)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -209,7 +209,7 @@ namespace {{clientPackage}}
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Serialize an object into JSON string.
|
/// Serialize an object into JSON string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -226,7 +226,7 @@ namespace {{clientPackage}}
|
|||||||
throw new ApiException(500, e.Message);
|
throw new ApiException(500, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the API key with prefix.
|
/// Get the API key with prefix.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -242,7 +242,7 @@ namespace {{clientPackage}}
|
|||||||
else
|
else
|
||||||
return apiKeyValue;
|
return apiKeyValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update parameters based on authentication.
|
/// Update parameters based on authentication.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -288,7 +288,7 @@ namespace {{clientPackage}}
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encode string in base64 format.
|
/// Encode string in base64 format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -299,7 +299,7 @@ namespace {{clientPackage}}
|
|||||||
var textByte = System.Text.Encoding.UTF8.GetBytes(text);
|
var textByte = System.Text.Encoding.UTF8.GetBytes(text);
|
||||||
return System.Convert.ToBase64String(textByte);
|
return System.Convert.ToBase64String(textByte);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -309,6 +309,6 @@ namespace {{clientPackage}}
|
|||||||
public static Object ConvertType(Object fromObject, Type toObject) {
|
public static Object ConvertType(Object fromObject, Type toObject) {
|
||||||
return Convert.ChangeType(fromObject, toObject);
|
return Convert.ChangeType(fromObject, toObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,31 +12,31 @@ namespace {{clientPackage}}
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Configuration
|
public class Configuration
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Version of the package.
|
/// Version of the package.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>Version of the package.</value>
|
/// <value>Version of the package.</value>
|
||||||
public const string Version = "{{packageVersion}}";
|
public const string Version = "{{packageVersion}}";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the default API client for making HTTP calls.
|
/// Gets or sets the default API client for making HTTP calls.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The API client.</value>
|
/// <value>The API client.</value>
|
||||||
public static ApiClient DefaultApiClient = new ApiClient();
|
public static ApiClient DefaultApiClient = new ApiClient();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the username (HTTP basic authentication).
|
/// Gets or sets the username (HTTP basic authentication).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The username.</value>
|
/// <value>The username.</value>
|
||||||
public static String Username { get; set; }
|
public static String Username { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the password (HTTP basic authentication).
|
/// Gets or sets the password (HTTP basic authentication).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The password.</value>
|
/// <value>The password.</value>
|
||||||
public static String Password { get; set; }
|
public static String Password { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the access token (Bearer/OAuth authentication).
|
/// Gets or sets the access token (Bearer/OAuth authentication).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -48,15 +48,15 @@ namespace {{clientPackage}}
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The API key.</value>
|
/// <value>The API key.</value>
|
||||||
public static Dictionary<String, String> ApiKey = new Dictionary<String, String>();
|
public static Dictionary<String, String> ApiKey = new Dictionary<String, String>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
|
/// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The prefix of the API key.</value>
|
/// <value>The prefix of the API key.</value>
|
||||||
public static Dictionary<String, String> ApiKeyPrefix = new Dictionary<String, String>();
|
public static Dictionary<String, String> ApiKeyPrefix = new Dictionary<String, String>();
|
||||||
|
|
||||||
private static string _tempFolderPath = Path.GetTempPath();
|
private static string _tempFolderPath = Path.GetTempPath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the temporary folder path to store the files downloaded from the server.
|
/// Gets or sets the temporary folder path to store the files downloaded from the server.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -64,19 +64,19 @@ namespace {{clientPackage}}
|
|||||||
public static String TempFolderPath
|
public static String TempFolderPath
|
||||||
{
|
{
|
||||||
get { return _tempFolderPath; }
|
get { return _tempFolderPath; }
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (String.IsNullOrEmpty(value))
|
if (String.IsNullOrEmpty(value))
|
||||||
{
|
{
|
||||||
_tempFolderPath = value;
|
_tempFolderPath = value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the directory if it does not exist
|
// create the directory if it does not exist
|
||||||
if (!Directory.Exists(value))
|
if (!Directory.Exists(value))
|
||||||
Directory.CreateDirectory(value);
|
Directory.CreateDirectory(value);
|
||||||
|
|
||||||
// check if the path contains directory separator at the end
|
// check if the path contains directory separator at the end
|
||||||
if (value[value.Length - 1] == Path.DirectorySeparatorChar)
|
if (value[value.Length - 1] == Path.DirectorySeparatorChar)
|
||||||
_tempFolderPath = value;
|
_tempFolderPath = value;
|
||||||
@ -131,7 +131,7 @@ namespace {{clientPackage}}
|
|||||||
.Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
|
.Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
|
||||||
report += " Version of the API: {{version}}\n";
|
report += " Version of the API: {{version}}\n";
|
||||||
report += " SDK Package Version: {{packageVersion}}\n";
|
report += " SDK Package Version: {{packageVersion}}\n";
|
||||||
|
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ namespace {{apiPackage}}
|
|||||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}});
|
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}});
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a collection of functions to interact with the API endpoints
|
/// Represents a collection of functions to interact with the API endpoints
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -36,11 +36,11 @@ namespace {{apiPackage}}
|
|||||||
public {{classname}}(ApiClient apiClient = null)
|
public {{classname}}(ApiClient apiClient = null)
|
||||||
{
|
{
|
||||||
if (apiClient == null) // use the default one in Configuration
|
if (apiClient == null) // use the default one in Configuration
|
||||||
this.ApiClient = Configuration.DefaultApiClient;
|
this.ApiClient = Configuration.DefaultApiClient;
|
||||||
else
|
else
|
||||||
this.ApiClient = apiClient;
|
this.ApiClient = apiClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="{{classname}}"/> class.
|
/// Initializes a new instance of the <see cref="{{classname}}"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -49,7 +49,7 @@ namespace {{apiPackage}}
|
|||||||
{
|
{
|
||||||
this.ApiClient = new ApiClient(basePath);
|
this.ApiClient = new ApiClient(basePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the base path of the API client.
|
/// Sets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -59,7 +59,7 @@ namespace {{apiPackage}}
|
|||||||
{
|
{
|
||||||
this.ApiClient.BasePath = basePath;
|
this.ApiClient.BasePath = basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the base path of the API client.
|
/// Gets the base path of the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -69,37 +69,37 @@ namespace {{apiPackage}}
|
|||||||
{
|
{
|
||||||
return this.ApiClient.BasePath;
|
return this.ApiClient.BasePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the API client.
|
/// Gets or sets the API client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>An instance of the ApiClient</value>
|
/// <value>An instance of the ApiClient</value>
|
||||||
public ApiClient ApiClient {get; set;}
|
public ApiClient ApiClient {get; set;}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{summary}} {{notes}}
|
/// {{summary}} {{notes}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
{{#allParams}}/// <param name="{{paramName}}">{{description}}</param>
|
||||||
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
|
||||||
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}})
|
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}})
|
||||||
{
|
{
|
||||||
{{#allParams}}{{#required}}
|
{{#allParams}}{{#required}}
|
||||||
// verify the required parameter '{{paramName}}' is set
|
// verify the required parameter '{{paramName}}' is set
|
||||||
if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{nickname}}");
|
if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{nickname}}");
|
||||||
{{/required}}{{/allParams}}
|
{{/required}}{{/allParams}}
|
||||||
|
|
||||||
var path = "{{{path}}}";
|
var path = "{{{path}}}";
|
||||||
path = path.Replace("{format}", "json");
|
path = path.Replace("{format}", "json");
|
||||||
{{#pathParams}}path = path.Replace("{" + "{{baseName}}" + "}", ApiClient.ParameterToString({{{paramName}}}));
|
{{#pathParams}}path = path.Replace("{" + "{{baseName}}" + "}", ApiClient.ParameterToString({{{paramName}}}));
|
||||||
{{/pathParams}}
|
{{/pathParams}}
|
||||||
|
|
||||||
var queryParams = new Dictionary<String, String>();
|
var queryParams = new Dictionary<String, String>();
|
||||||
var headerParams = new Dictionary<String, String>();
|
var headerParams = new Dictionary<String, String>();
|
||||||
var formParams = new Dictionary<String, String>();
|
var formParams = new Dictionary<String, String>();
|
||||||
var fileParams = new Dictionary<String, FileParameter>();
|
var fileParams = new Dictionary<String, FileParameter>();
|
||||||
String postBody = null;
|
String postBody = null;
|
||||||
|
|
||||||
{{#queryParams}} if ({{paramName}} != null) queryParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // query parameter
|
{{#queryParams}} if ({{paramName}} != null) queryParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // query parameter
|
||||||
{{/queryParams}}
|
{{/queryParams}}
|
||||||
{{#headerParams}} if ({{paramName}} != null) headerParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // header parameter
|
{{#headerParams}} if ({{paramName}} != null) headerParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // header parameter
|
||||||
@ -108,21 +108,21 @@ namespace {{apiPackage}}
|
|||||||
{{/formParams}}
|
{{/formParams}}
|
||||||
{{#bodyParam}}postBody = ApiClient.Serialize({{paramName}}); // http body (model) parameter
|
{{#bodyParam}}postBody = ApiClient.Serialize({{paramName}}); // http body (model) parameter
|
||||||
{{/bodyParam}}
|
{{/bodyParam}}
|
||||||
|
|
||||||
// authentication setting, if any
|
// authentication setting, if any
|
||||||
String[] authSettings = new String[] { {{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} };
|
String[] authSettings = new String[] { {{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} };
|
||||||
|
|
||||||
// make the HTTP request
|
// make the HTTP request
|
||||||
IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.{{httpMethod}}, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
|
IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.{{httpMethod}}, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
|
||||||
|
|
||||||
if (((int)response.StatusCode) >= 400)
|
if (((int)response.StatusCode) >= 400)
|
||||||
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.Content, response.Content);
|
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.Content, response.Content);
|
||||||
else if (((int)response.StatusCode) == 0)
|
else if (((int)response.StatusCode) == 0)
|
||||||
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.ErrorMessage, response.ErrorMessage);
|
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.ErrorMessage, response.ErrorMessage);
|
||||||
|
|
||||||
{{#returnType}}return ({{{returnType}}}) ApiClient.Deserialize(response.Content, typeof({{{returnType}}}), response.Headers);{{/returnType}}{{^returnType}}return;{{/returnType}}
|
{{#returnType}}return ({{{returnType}}}) ApiClient.Deserialize(response.Content, typeof({{{returnType}}}), response.Headers);{{/returnType}}{{^returnType}}return;{{/returnType}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
@ -168,7 +168,7 @@ namespace {{packageName}}.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace {{packageName}}.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ namespace {{packageName}}.Client
|
|||||||
{{/reUseHttpClient}}
|
{{/reUseHttpClient}}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return new{{classname}};
|
return new{{classname}};
|
||||||
}
|
}
|
||||||
|
@ -564,7 +564,7 @@ namespace {{packageName}}.Client
|
|||||||
{{/netStandard}}
|
{{/netStandard}}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert params to key/value pairs.
|
/// Convert params to key/value pairs.
|
||||||
/// Use collectionFormat to properly format lists and collections.
|
/// Use collectionFormat to properly format lists and collections.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="collectionFormat">Collection format.</param>
|
/// <param name="collectionFormat">Collection format.</param>
|
||||||
|
@ -29,7 +29,7 @@ namespace {{packageName}}.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
String GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
{
|
{
|
||||||
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
||||||
}
|
}
|
||||||
|
|
||||||
{{/required}}
|
{{/required}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
||||||
@ -100,7 +100,7 @@ this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
|||||||
{{/isInherited}}
|
{{/isInherited}}
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
{{^isInherited}}
|
{{^isInherited}}
|
||||||
{{^isEnum}}
|
{{^isEnum}}
|
||||||
@ -132,7 +132,7 @@ this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -296,7 +296,7 @@ this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
|||||||
}
|
}
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{/isEnum}}
|
{{/isEnum}}
|
||||||
|
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
// {{{name}}} ({{{dataType}}}) maximum
|
// {{{name}}} ({{{dataType}}}) maximum
|
||||||
if(this.{{{name}}} > ({{{dataType}}}){{maximum}})
|
if(this.{{{name}}} > ({{{dataType}}}){{maximum}})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
{{#appName}}
|
{{#appName}}
|
||||||
* {{{appName}}}
|
* {{{appName}}}
|
||||||
*
|
*
|
||||||
|
@ -165,7 +165,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruit;
|
return newFruit;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruitReq;
|
return newFruitReq;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newMammal;
|
return newMammal;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newPig;
|
return newPig;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShape;
|
return newShape;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruit;
|
return newFruit;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruitReq;
|
return newFruitReq;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newMammal;
|
return newMammal;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newPig;
|
return newPig;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShape;
|
return newShape;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruit;
|
return newFruit;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruitReq;
|
return newFruitReq;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newMammal;
|
return newMammal;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newPig;
|
return newPig;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShape;
|
return newShape;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruit;
|
return newFruit;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruitReq;
|
return newFruitReq;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newMammal;
|
return newMammal;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newPig;
|
return newPig;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShape;
|
return newShape;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
private readonly String _baseUrl;
|
private readonly String _baseUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
/// Specifies the settings on a <see cref="JsonSerializer" /> object.
|
||||||
/// These settings can be adjusted to accomodate custom serialization rules.
|
/// These settings can be adjusted to accomodate custom serialization rules.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings
|
||||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
var uriBuilder = new UriBuilder(string.Concat(basePath, path));
|
||||||
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
uriBuilder.Query = httpValues.ToString().Replace("+", "%20");
|
||||||
|
|
||||||
var dateTime = DateTime.Now;
|
var dateTime = DateTime.Now;
|
||||||
String Digest = String.Empty;
|
String Digest = String.Empty;
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruit;
|
return newFruit;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newFruitReq;
|
return newFruitReq;
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newMammal;
|
return newMammal;
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newNullableShape;
|
return newNullableShape;
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newPig;
|
return newPig;
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newQuadrilateral;
|
return newQuadrilateral;
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShape;
|
return newShape;
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newShapeOrNull;
|
return newShapeOrNull;
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserialization is considered successful at this point if no exception has been thrown.
|
// deserialization is considered successful at this point if no exception has been thrown.
|
||||||
return newTriangle;
|
return newTriangle;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -499,7 +499,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert params to key/value pairs.
|
/// Convert params to key/value pairs.
|
||||||
/// Use collectionFormat to properly format lists and collections.
|
/// Use collectionFormat to properly format lists and collections.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="collectionFormat">Collection format.</param>
|
/// <param name="collectionFormat">Collection format.</param>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -33,7 +33,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The base path</value>
|
/// <value>The base path</value>
|
||||||
String GetBasePath();
|
String GetBasePath();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides a factory method hook for the creation of exceptions.
|
/// Provides a factory method hook for the creation of exceptions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.MapProperty = mapProperty;
|
this.MapProperty = mapProperty;
|
||||||
this.MapOfMapProperty = mapOfMapProperty;
|
this.MapOfMapProperty = mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets MapProperty
|
/// Gets or Sets MapProperty
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -66,7 +66,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ClassName = className;
|
this.ClassName = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
// use default value if no "color" provided
|
// use default value if no "color" provided
|
||||||
if (color == null)
|
if (color == null)
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.Color = color;
|
this.Color = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ClassName
|
/// Gets or Sets ClassName
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -42,7 +42,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.Type = type;
|
this.Type = type;
|
||||||
this.Message = message;
|
this.Message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Code
|
/// Gets or Sets Code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ArrayArrayNumber = arrayArrayNumber;
|
this.ArrayArrayNumber = arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ArrayArrayNumber
|
/// Gets or Sets ArrayArrayNumber
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.ArrayNumber = arrayNumber;
|
this.ArrayNumber = arrayNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ArrayNumber
|
/// Gets or Sets ArrayNumber
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -42,7 +42,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
this.ArrayArrayOfModel = arrayArrayOfModel;
|
this.ArrayArrayOfModel = arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets ArrayOfString
|
/// Gets or Sets ArrayOfString
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.SCAETHFlowPoints = sCAETHFlowPoints;
|
this.SCAETHFlowPoints = sCAETHFlowPoints;
|
||||||
this.ATT_NAME = aTTNAME;
|
this.ATT_NAME = aTTNAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets SmallCamel
|
/// Gets or Sets SmallCamel
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -103,7 +103,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Declawed
|
/// Gets or Sets Declawed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Declawed = declawed;
|
this.Declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Declawed
|
/// Gets or Sets Declawed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -51,10 +51,10 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Name = name;
|
this.Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Id = id;
|
this.Id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Id
|
/// Gets or Sets Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -80,7 +80,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Class = _class;
|
this.Class = _class;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Class
|
/// Gets or Sets Class
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Breed
|
/// Gets or Sets Breed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.Breed = breed;
|
this.Breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets Breed
|
/// Gets or Sets Breed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -91,7 +91,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.JustSymbol = justSymbol;
|
this.JustSymbol = justSymbol;
|
||||||
this.ArrayEnum = arrayEnum;
|
this.ArrayEnum = arrayEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -107,7 +107,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -186,7 +186,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.EnumStringRequired = enumStringRequired;
|
this.EnumStringRequired = enumStringRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.OuterEnum = outerEnum;
|
this.OuterEnum = outerEnum;
|
||||||
this.EnumString = enumString;
|
this.EnumString = enumString;
|
||||||
this.EnumInteger = enumInteger;
|
this.EnumInteger = enumInteger;
|
||||||
@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.OuterEnumDefaultValue = outerEnumDefaultValue;
|
this.OuterEnumDefaultValue = outerEnumDefaultValue;
|
||||||
this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -38,7 +38,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
this.SourceURI = sourceURI;
|
this.SourceURI = sourceURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test capitalization
|
/// Test capitalization
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* OpenAPI Petstore
|
* 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: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
this.File = file;
|
this.File = file;
|
||||||
this.Files = files;
|
this.Files = files;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets File
|
/// Gets or Sets File
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -66,7 +66,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the JSON string presentation of the object
|
/// Returns the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user