forked from loafle/openapi-generator-original
[C#][netcore] Fix model, property name check (#9049)
* fix model, property name check in c# generator * remove file * remove file * specify name
This commit is contained in:
parent
bedfe156bb
commit
d438d797da
@ -399,7 +399,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
// check to see if model name is same as the property name
|
// check to see if model name is same as the property name
|
||||||
// which will result in compilation error
|
// which will result in compilation error
|
||||||
// if found, prepend with _ to workaround the limitation
|
// if found, prepend with _ to workaround the limitation
|
||||||
if (var.name.equalsIgnoreCase(cm.name)) {
|
if (var.name.equalsIgnoreCase(cm.classname)) {
|
||||||
var.name = "_" + var.name;
|
var.name = "_" + var.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1793,6 +1793,8 @@ components:
|
|||||||
'$special[property.name]':
|
'$special[property.name]':
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
'_special_model.name_':
|
||||||
|
type: string
|
||||||
xml:
|
xml:
|
||||||
name: '$special[model.name]'
|
name: '$special[model.name]'
|
||||||
HealthCheckResult:
|
HealthCheckResult:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**SpecialPropertyName** | **long** | | [optional]
|
**SpecialPropertyName** | **long** | | [optional]
|
||||||
|
**_SpecialModelName** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -38,15 +38,15 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name = "client", EmitDefaultValue = false)]
|
[DataMember(Name = "client", EmitDefaultValue = false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -36,9 +36,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||||
public SpecialModelName(long specialPropertyName = default(long))
|
/// <param name="specialModelName">specialModelName.</param>
|
||||||
|
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||||
{
|
{
|
||||||
this.SpecialPropertyName = specialPropertyName;
|
this.SpecialPropertyName = specialPropertyName;
|
||||||
|
this._SpecialModelName = specialModelName;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +50,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
||||||
public long SpecialPropertyName { get; set; }
|
public long SpecialPropertyName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets _SpecialModelName
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
|
||||||
|
public string _SpecialModelName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,6 +71,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -107,6 +116,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
if (this._SpecialModelName != null)
|
||||||
|
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**SpecialPropertyName** | **long** | | [optional]
|
**SpecialPropertyName** | **long** | | [optional]
|
||||||
|
**_SpecialModelName** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -38,15 +38,15 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name = "client", EmitDefaultValue = false)]
|
[DataMember(Name = "client", EmitDefaultValue = false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -36,9 +36,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||||
public SpecialModelName(long specialPropertyName = default(long))
|
/// <param name="specialModelName">specialModelName.</param>
|
||||||
|
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||||
{
|
{
|
||||||
this.SpecialPropertyName = specialPropertyName;
|
this.SpecialPropertyName = specialPropertyName;
|
||||||
|
this._SpecialModelName = specialModelName;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +50,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
||||||
public long SpecialPropertyName { get; set; }
|
public long SpecialPropertyName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets _SpecialModelName
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
|
||||||
|
public string _SpecialModelName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,6 +71,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -107,6 +116,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
if (this._SpecialModelName != null)
|
||||||
|
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**SpecialPropertyName** | **long** | | [optional]
|
**SpecialPropertyName** | **long** | | [optional]
|
||||||
|
**_SpecialModelName** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -38,15 +38,15 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name = "client", EmitDefaultValue = false)]
|
[DataMember(Name = "client", EmitDefaultValue = false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -36,9 +36,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||||
public SpecialModelName(long specialPropertyName = default(long))
|
/// <param name="specialModelName">specialModelName.</param>
|
||||||
|
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||||
{
|
{
|
||||||
this.SpecialPropertyName = specialPropertyName;
|
this.SpecialPropertyName = specialPropertyName;
|
||||||
|
this._SpecialModelName = specialModelName;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +50,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
||||||
public long SpecialPropertyName { get; set; }
|
public long SpecialPropertyName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets _SpecialModelName
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
|
||||||
|
public string _SpecialModelName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,6 +71,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -107,6 +116,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
if (this._SpecialModelName != null)
|
||||||
|
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**SpecialPropertyName** | **long** | | [optional]
|
**SpecialPropertyName** | **long** | | [optional]
|
||||||
|
**_SpecialModelName** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -38,15 +38,15 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name = "client", EmitDefaultValue = false)]
|
[DataMember(Name = "client", EmitDefaultValue = false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -36,9 +36,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||||
public SpecialModelName(long specialPropertyName = default(long))
|
/// <param name="specialModelName">specialModelName.</param>
|
||||||
|
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||||
{
|
{
|
||||||
this.SpecialPropertyName = specialPropertyName;
|
this.SpecialPropertyName = specialPropertyName;
|
||||||
|
this._SpecialModelName = specialModelName;
|
||||||
this.AdditionalProperties = new Dictionary<string, object>();
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +50,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
||||||
public long SpecialPropertyName { get; set; }
|
public long SpecialPropertyName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets _SpecialModelName
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
|
||||||
|
public string _SpecialModelName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets additional properties
|
/// Gets or Sets additional properties
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -63,6 +71,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -107,6 +116,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
if (this._SpecialModelName != null)
|
||||||
|
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||||
if (this.AdditionalProperties != null)
|
if (this.AdditionalProperties != null)
|
||||||
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**SpecialPropertyName** | **long** | | [optional]
|
**SpecialPropertyName** | **long** | | [optional]
|
||||||
|
**_SpecialModelName** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -38,14 +38,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name = "client", EmitDefaultValue = false)]
|
[DataMember(Name = "client", EmitDefaultValue = false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -98,8 +98,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,11 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||||
public SpecialModelName(long specialPropertyName = default(long))
|
/// <param name="specialModelName">specialModelName.</param>
|
||||||
|
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||||
{
|
{
|
||||||
this.SpecialPropertyName = specialPropertyName;
|
this.SpecialPropertyName = specialPropertyName;
|
||||||
|
this._SpecialModelName = specialModelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -47,6 +49,12 @@ namespace Org.OpenAPITools.Model
|
|||||||
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
[DataMember(Name = "$special[property.name]", EmitDefaultValue = false)]
|
||||||
public long SpecialPropertyName { get; set; }
|
public long SpecialPropertyName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets _SpecialModelName
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
|
||||||
|
public string _SpecialModelName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -56,6 +64,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class SpecialModelName {\n");
|
sb.Append("class SpecialModelName {\n");
|
||||||
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
sb.Append(" SpecialPropertyName: ").Append(SpecialPropertyName).Append("\n");
|
||||||
|
sb.Append(" _SpecialModelName: ").Append(_SpecialModelName).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -99,6 +108,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
|
if (this._SpecialModelName != null)
|
||||||
|
hashCode = hashCode * 59 + this._SpecialModelName.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**__Client** | **string** | | [optional]
|
**_Client** | **string** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models)
|
[[Back to Model list]](../README.md#documentation-for-models)
|
||||||
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||||
|
@ -36,14 +36,14 @@ namespace Org.OpenAPITools.Model
|
|||||||
/// <param name="_client">_client.</param>
|
/// <param name="_client">_client.</param>
|
||||||
public ModelClient(string _client = default(string))
|
public ModelClient(string _client = default(string))
|
||||||
{
|
{
|
||||||
this.__Client = _client;
|
this._Client = _client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or Sets __Client
|
/// Gets or Sets _Client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataMember(Name="client", EmitDefaultValue=false)]
|
[DataMember(Name="client", EmitDefaultValue=false)]
|
||||||
public string __Client { get; set; }
|
public string _Client { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model
|
|||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class ModelClient {\n");
|
sb.Append("class ModelClient {\n");
|
||||||
sb.Append(" __Client: ").Append(__Client).Append("\n");
|
sb.Append(" _Client: ").Append(_Client).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
|
|||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.__Client == input.__Client ||
|
this._Client == input._Client ||
|
||||||
(this.__Client != null &&
|
(this._Client != null &&
|
||||||
this.__Client.Equals(input.__Client))
|
this._Client.Equals(input._Client))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model
|
|||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hashCode = 41;
|
int hashCode = 41;
|
||||||
if (this.__Client != null)
|
if (this._Client != null)
|
||||||
hashCode = hashCode * 59 + this.__Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
return hashCode;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1957,6 +1957,8 @@ components:
|
|||||||
$special[property.name]:
|
$special[property.name]:
|
||||||
format: int64
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
|
_special_model.name_:
|
||||||
|
type: string
|
||||||
xml:
|
xml:
|
||||||
name: $special[model.name]
|
name: $special[model.name]
|
||||||
HealthCheckResult:
|
HealthCheckResult:
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**$specialPropertyName** | **Long** | | [optional]
|
**$specialPropertyName** | **Long** | | [optional]
|
||||||
|
**specialModelName** | **String** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,13 +32,17 @@ import org.openapitools.client.JSON;
|
|||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME,
|
||||||
|
SpecialModelName.JSON_PROPERTY_SPECIAL_MODEL_NAME
|
||||||
})
|
})
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||||
private Long $specialPropertyName;
|
private Long $specialPropertyName;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_";
|
||||||
|
private String specialModelName;
|
||||||
|
|
||||||
|
|
||||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||||
this.$specialPropertyName = $specialPropertyName;
|
this.$specialPropertyName = $specialPropertyName;
|
||||||
@ -64,6 +68,30 @@ public class SpecialModelName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public SpecialModelName specialModelName(String specialModelName) {
|
||||||
|
this.specialModelName = specialModelName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get specialModelName
|
||||||
|
* @return specialModelName
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getSpecialModelName() {
|
||||||
|
return specialModelName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setSpecialModelName(String specialModelName) {
|
||||||
|
this.specialModelName = specialModelName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if this _special_model.name_ object is equal to o.
|
* Return true if this _special_model.name_ object is equal to o.
|
||||||
*/
|
*/
|
||||||
@ -76,12 +104,13 @@ public class SpecialModelName {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
SpecialModelName specialModelName = (SpecialModelName) o;
|
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||||
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
|
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName) &&
|
||||||
|
Objects.equals(this.specialModelName, specialModelName.specialModelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash($specialPropertyName);
|
return Objects.hash($specialPropertyName, specialModelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -89,6 +118,7 @@ public class SpecialModelName {
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class SpecialModelName {\n");
|
sb.append("class SpecialModelName {\n");
|
||||||
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
|
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
|
||||||
|
sb.append(" specialModelName: ").append(toIndentedString(specialModelName)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -1957,6 +1957,8 @@ components:
|
|||||||
$special[property.name]:
|
$special[property.name]:
|
||||||
format: int64
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
|
_special_model.name_:
|
||||||
|
type: string
|
||||||
xml:
|
xml:
|
||||||
name: $special[model.name]
|
name: $special[model.name]
|
||||||
HealthCheckResult:
|
HealthCheckResult:
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**$specialPropertyName** | **Long** | | [optional]
|
**$specialPropertyName** | **Long** | | [optional]
|
||||||
|
**specialModelName** | **String** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,13 +31,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME,
|
||||||
|
SpecialModelName.JSON_PROPERTY_SPECIAL_MODEL_NAME
|
||||||
})
|
})
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||||
private Long $specialPropertyName;
|
private Long $specialPropertyName;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_";
|
||||||
|
private String specialModelName;
|
||||||
|
|
||||||
|
|
||||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||||
this.$specialPropertyName = $specialPropertyName;
|
this.$specialPropertyName = $specialPropertyName;
|
||||||
@ -63,6 +67,30 @@ public class SpecialModelName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public SpecialModelName specialModelName(String specialModelName) {
|
||||||
|
this.specialModelName = specialModelName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get specialModelName
|
||||||
|
* @return specialModelName
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getSpecialModelName() {
|
||||||
|
return specialModelName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setSpecialModelName(String specialModelName) {
|
||||||
|
this.specialModelName = specialModelName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if this _special_model.name_ object is equal to o.
|
* Return true if this _special_model.name_ object is equal to o.
|
||||||
*/
|
*/
|
||||||
@ -75,12 +103,13 @@ public class SpecialModelName {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
SpecialModelName specialModelName = (SpecialModelName) o;
|
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||||
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
|
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName) &&
|
||||||
|
Objects.equals(this.specialModelName, specialModelName.specialModelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash($specialPropertyName);
|
return Objects.hash($specialPropertyName, specialModelName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -88,6 +117,7 @@ public class SpecialModelName {
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class SpecialModelName {\n");
|
sb.append("class SpecialModelName {\n");
|
||||||
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
|
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
|
||||||
|
sb.append(" specialModelName: ").append(toIndentedString(specialModelName)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user