Class ValidationErrorResponse
Validation error response when a value provided from the client does not pass validation on server.
Inherited Members
Namespace: Unity.Services.Apis.CloudSave
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "ValidationErrorResponse")]
[Preserve]
public class ValidationErrorResponse
Constructors
ValidationErrorResponse(string, string, int, int, string, string, List<ValidationErrorBody>)
Initializes a new instance of the Validation
Declaration
[Preserve]
public ValidationErrorResponse(string type = null, string title = null, int status = 0, int code = 0, string detail = null, string instance = null, List<ValidationErrorBody> errors = null)
Parameters
Type | Name | Description |
---|---|---|
string | type | type (required). |
string | title | title (required). |
int | status | status (required). |
int | code | code (required). |
string | detail | detail (required). |
string | instance | instance. |
List<Validation |
errors | errors (required). |
Properties
Code
Gets or Sets Code
Declaration
[DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Code { get; set; }
Property Value
Type | Description |
---|---|
int |
Detail
Gets or Sets Detail
Declaration
[DataMember(Name = "detail", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Detail { get; set; }
Property Value
Type | Description |
---|---|
string |
Errors
Gets or Sets Errors
Declaration
[DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<ValidationErrorBody> Errors { get; set; }
Property Value
Type | Description |
---|---|
List<Validation |
Instance
Gets or Sets Instance
Declaration
[DataMember(Name = "instance", EmitDefaultValue = false)]
[Preserve]
public string Instance { get; set; }
Property Value
Type | Description |
---|---|
string |
Status
Gets or Sets Status
Declaration
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Status { get; set; }
Property Value
Type | Description |
---|---|
int |
Title
Gets or Sets Title
Declaration
[DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Gets or Sets Type
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string |