-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implemented Class Style for ModelGenerator.
- Loading branch information
Showing
17 changed files
with
707 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 50 additions & 1 deletion
51
...enerator.SnapshotTests/Snapshots/YamlWithLocalFile/_#G.Models.AbuseResponse.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,51 @@ | ||
//HintName: G.Models.AbuseResponse.g.cs | ||
// | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public sealed class AbuseResponse | ||
{ | ||
/// <summary> | ||
/// Example: US, CA, Mountain View, 1600 Amphitheatre Parkway, 94043 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("address")] | ||
public string? Address { get; set; } | ||
|
||
/// <summary> | ||
/// Example: US | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("country")] | ||
public string? Country { get; set; } | ||
|
||
/// <summary> | ||
/// Example: [email protected] | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("email")] | ||
public string? Email { get; set; } | ||
|
||
/// <summary> | ||
/// Example: Abuse | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
/// <summary> | ||
/// Example: 8.8.8.0/24 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("network")] | ||
public string? Network { get; set; } | ||
|
||
/// <summary> | ||
/// Example: +1-650-253-0000 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("phone")] | ||
public string? Phone { get; set; } | ||
|
||
[global::System.Text.Json.Serialization.JsonExtensionData] | ||
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>(); | ||
} | ||
} |
99 changes: 98 additions & 1 deletion
99
...iGenerator.SnapshotTests/Snapshots/YamlWithLocalFile/_#G.Models.AsnResponse.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,99 @@ | ||
//HintName: G.Models.AsnResponse.g.cs | ||
// | ||
|
||
#nullable enable | ||
|
||
namespace G | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public sealed class AsnResponse | ||
{ | ||
/// <summary> | ||
/// Example: AS10507 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("asn")] | ||
public string? Asn { get; set; } | ||
|
||
/// <summary> | ||
/// Example: Sprint Personal Communications Systems | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
/// <summary> | ||
/// Example: US | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("country")] | ||
public string? Country { get; set; } | ||
|
||
/// <summary> | ||
/// Example: 1997-02-14 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("allocated")] | ||
public string? Allocated { get; set; } | ||
|
||
/// <summary> | ||
/// Example: arin | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("registry")] | ||
public string? Registry { get; set; } | ||
|
||
/// <summary> | ||
/// Example: sprint.net | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("domain")] | ||
public string? Domain { get; set; } | ||
|
||
/// <summary> | ||
/// Example: 71224576 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("num_ips")] | ||
public int NumIps { get; set; } | ||
|
||
/// <summary> | ||
/// Example: 66.87.125.0/24 | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("route")] | ||
public string? Route { get; set; } | ||
|
||
/// <summary> | ||
/// Example: isp | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("type")] | ||
public string? Type { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("prefixes")] | ||
public object[]? Prefixes { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("prefixes6")] | ||
public object[]? Prefixes6 { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("peers")] | ||
public object[]? Peers { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("upstreams")] | ||
public object[]? Upstreams { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[global::System.Text.Json.Serialization.JsonPropertyName("downstreams")] | ||
public object[]? Downstreams { get; set; } | ||
|
||
[global::System.Text.Json.Serialization.JsonExtensionData] | ||
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>(); | ||
} | ||
} |
Oops, something went wrong.