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