Skip to content

Commit

Permalink
Ensure CustomDomainVerification.Methods can be serialized
Browse files Browse the repository at this point in the history
Fix #508
  • Loading branch information
frederikprijck committed Jul 29, 2021
1 parent 4bb018a commit e49bf82
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Models/CustomDomainVerification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class CustomDomainVerification
/// The custom domain verification methods.
/// </summary>
[JsonProperty("methods")]
public string[] Methods { get; set; }
public CustomDomainVerificationMethod[] Methods { get; set; }
}
}
28 changes: 28 additions & 0 deletions src/Auth0.ManagementApi/Models/CustomDomainVerificationMethod.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Newtonsoft.Json;

namespace Auth0.ManagementApi.Models
{
/// <summary>
/// The custom domain verification method.
/// </summary>
public class CustomDomainVerificationMethod
{
/// <summary>
/// Domain verification method. ("cname" or "txt")
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Value used to verify the domain.
/// </summary>
[JsonProperty("record")]
public string Record { get; set; }

/// <summary>
/// The name of the txt record for verification.
/// </summary>
[JsonProperty("domain")]
public string Domain { get; set; }
}
}

0 comments on commit e49bf82

Please sign in to comment.