diff --git a/Solutions/Corvus.Json.CodeGeneration.201909/Corvus.Json.CodeGeneration.Draft201909/Generators/CodeGenerator.Enum.cs b/Solutions/Corvus.Json.CodeGeneration.201909/Corvus.Json.CodeGeneration.Draft201909/Generators/CodeGenerator.Enum.cs index e77128a13..6036865f1 100644 --- a/Solutions/Corvus.Json.CodeGeneration.201909/Corvus.Json.CodeGeneration.Draft201909/Generators/CodeGenerator.Enum.cs +++ b/Solutions/Corvus.Json.CodeGeneration.201909/Corvus.Json.CodeGeneration.Draft201909/Generators/CodeGenerator.Enum.cs @@ -16,7 +16,7 @@ namespace Corvus.Json.CodeGeneration.Generators.Draft201909 { public partial class CodeGeneratorEnum : CodeGeneratorEnumBase { - #line 129 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 105 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" public bool ShouldGenerate { @@ -121,111 +121,109 @@ namespace "); #line hidden #line 43 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// "); + this.Write(" /// \r\n /// Gets "); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(".\r\n /// \r\n /// \r\n /// {Description}.\r\n " + - " /// \r\n public static readonly "); + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(");\r\n /// \r\n /// Gets the "); + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(");\r\n /// \r\n /// Gets "); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" as a raw UTF8 string.\r\n /// \r\n /// \r\n //" + - "/ {Description}.\r\n /// \r\n public static ReadOnlySpan "); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a UTF8 string.\r\n /// \r\n public static ReadOnlySpan "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("Utf8 => "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("u8;\r\n"); #line default #line hidden - #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsBoolean) { @@ -233,74 +231,73 @@ namespace "); #line default #line hidden - #line 60 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 54 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 67 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 58 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNumber) { @@ -308,74 +305,73 @@ namespace "); #line default #line hidden - #line 70 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 77 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 65 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsObject) { @@ -383,74 +379,73 @@ namespace "); #line default #line hidden - #line 80 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 68 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 87 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 72 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsArray) { @@ -458,74 +453,73 @@ namespace "); #line default #line hidden - #line 90 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 75 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 97 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 79 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNull) { @@ -533,62 +527,50 @@ namespace "); #line default #line hidden - #line 100 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); - - #line default - #line hidden - - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 82 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets \"null\" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); - - #line default - #line hidden - - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse(\"null\");\r\n"); #line default #line hidden - #line 107 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } ++enumItemIndex; } @@ -602,75 +584,73 @@ namespace "); #line default #line hidden - #line 116 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 95 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n internal static readonly" + - " "); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n internal static readonly "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 123 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 99 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } enumItemIndex++; } @@ -678,13 +658,13 @@ namespace "); #line default #line hidden - #line 126 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 102 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" }\r\n}\r\n"); #line default #line hidden - #line 128 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 104 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" EndNesting(); #line default diff --git a/Solutions/Corvus.Json.CodeGeneration.202012/Corvus.Json.CodeGeneration.Draft202012/Generators/CodeGenerator.Enum.cs b/Solutions/Corvus.Json.CodeGeneration.202012/Corvus.Json.CodeGeneration.Draft202012/Generators/CodeGenerator.Enum.cs index 5e5c6b0bc..5a5553188 100644 --- a/Solutions/Corvus.Json.CodeGeneration.202012/Corvus.Json.CodeGeneration.Draft202012/Generators/CodeGenerator.Enum.cs +++ b/Solutions/Corvus.Json.CodeGeneration.202012/Corvus.Json.CodeGeneration.Draft202012/Generators/CodeGenerator.Enum.cs @@ -16,7 +16,7 @@ namespace Corvus.Json.CodeGeneration.Generators.Draft202012 { public partial class CodeGeneratorEnum : CodeGeneratorEnumBase { - #line 129 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 105 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" public bool ShouldGenerate { @@ -121,111 +121,109 @@ namespace "); #line hidden #line 43 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// "); + this.Write(" /// \r\n /// Gets "); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(".\r\n /// \r\n /// \r\n /// {Description}.\r\n " + - " /// \r\n public static readonly "); + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(");\r\n /// \r\n /// Gets the "); + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(");\r\n /// \r\n /// Gets "); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" as a raw UTF8 string.\r\n /// \r\n /// \r\n //" + - "/ {Description}.\r\n /// \r\n public static ReadOnlySpan "); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a UTF8 string.\r\n /// \r\n public static ReadOnlySpan "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("Utf8 => "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("u8;\r\n"); #line default #line hidden - #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsBoolean) { @@ -233,74 +231,73 @@ namespace "); #line default #line hidden - #line 60 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 54 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 67 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 58 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNumber) { @@ -308,74 +305,73 @@ namespace "); #line default #line hidden - #line 70 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 77 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 65 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsObject) { @@ -383,74 +379,73 @@ namespace "); #line default #line hidden - #line 80 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 68 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 87 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 72 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsArray) { @@ -458,74 +453,73 @@ namespace "); #line default #line hidden - #line 90 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 75 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 97 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 79 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNull) { @@ -533,62 +527,50 @@ namespace "); #line default #line hidden - #line 100 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); - - #line default - #line hidden - - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 82 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets \"null\" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); - - #line default - #line hidden - - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse(\"null\");\r\n"); #line default #line hidden - #line 107 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } ++enumItemIndex; } @@ -602,75 +584,73 @@ namespace "); #line default #line hidden - #line 116 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 95 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n internal static readonly" + - " "); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n internal static readonly "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 123 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 99 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } enumItemIndex++; } @@ -678,13 +658,13 @@ namespace "); #line default #line hidden - #line 126 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 102 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" }\r\n}\r\n"); #line default #line hidden - #line 128 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 104 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" EndNesting(); #line default diff --git a/Solutions/Corvus.Json.CodeGeneration.6/Corvus.Json.CodeGeneration.Draft6/Generators/CodeGenerator.Enum.cs b/Solutions/Corvus.Json.CodeGeneration.6/Corvus.Json.CodeGeneration.Draft6/Generators/CodeGenerator.Enum.cs index ca3946c75..7d6c60baa 100644 --- a/Solutions/Corvus.Json.CodeGeneration.6/Corvus.Json.CodeGeneration.Draft6/Generators/CodeGenerator.Enum.cs +++ b/Solutions/Corvus.Json.CodeGeneration.6/Corvus.Json.CodeGeneration.Draft6/Generators/CodeGenerator.Enum.cs @@ -16,7 +16,7 @@ namespace Corvus.Json.CodeGeneration.Generators.Draft6 { public partial class CodeGeneratorEnum : CodeGeneratorEnumBase { - #line 129 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 105 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" public bool ShouldGenerate { @@ -121,111 +121,109 @@ namespace "); #line hidden #line 43 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// "); + this.Write(" /// \r\n /// Gets "); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(".\r\n /// \r\n /// \r\n /// {Description}.\r\n " + - " /// \r\n public static readonly "); + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(");\r\n /// \r\n /// Gets the "); + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(");\r\n /// \r\n /// Gets "); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" as a raw UTF8 string.\r\n /// \r\n /// \r\n //" + - "/ {Description}.\r\n /// \r\n public static ReadOnlySpan "); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a UTF8 string.\r\n /// \r\n public static ReadOnlySpan "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("Utf8 => "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("u8;\r\n"); #line default #line hidden - #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsBoolean) { @@ -233,74 +231,73 @@ namespace "); #line default #line hidden - #line 60 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 54 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 67 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 58 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNumber) { @@ -308,74 +305,73 @@ namespace "); #line default #line hidden - #line 70 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 77 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 65 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsObject) { @@ -383,74 +379,73 @@ namespace "); #line default #line hidden - #line 80 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 68 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 87 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 72 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsArray) { @@ -458,74 +453,73 @@ namespace "); #line default #line hidden - #line 90 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 75 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 97 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 79 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNull) { @@ -533,62 +527,50 @@ namespace "); #line default #line hidden - #line 100 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); - - #line default - #line hidden - - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 82 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets \"null\" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); - - #line default - #line hidden - - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse(\"null\");\r\n"); #line default #line hidden - #line 107 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } ++enumItemIndex; } @@ -602,75 +584,73 @@ namespace "); #line default #line hidden - #line 116 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 95 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n internal static readonly" + - " "); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n internal static readonly "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 123 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 99 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } enumItemIndex++; } @@ -678,13 +658,13 @@ namespace "); #line default #line hidden - #line 126 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 102 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" }\r\n}\r\n"); #line default #line hidden - #line 128 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 104 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" EndNesting(); #line default diff --git a/Solutions/Corvus.Json.CodeGeneration.7/Corvus.Json.CodeGeneration.Draft7/Generators/CodeGenerator.Enum.cs b/Solutions/Corvus.Json.CodeGeneration.7/Corvus.Json.CodeGeneration.Draft7/Generators/CodeGenerator.Enum.cs index 0a54f0045..c492ac0b9 100644 --- a/Solutions/Corvus.Json.CodeGeneration.7/Corvus.Json.CodeGeneration.Draft7/Generators/CodeGenerator.Enum.cs +++ b/Solutions/Corvus.Json.CodeGeneration.7/Corvus.Json.CodeGeneration.Draft7/Generators/CodeGenerator.Enum.cs @@ -16,7 +16,7 @@ namespace Corvus.Json.CodeGeneration.Generators.Draft7 { public partial class CodeGeneratorEnum : CodeGeneratorEnumBase { - #line 129 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 105 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" public bool ShouldGenerate { @@ -121,111 +121,109 @@ namespace "); #line hidden #line 43 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// "); + this.Write(" /// \r\n /// Gets "); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden #line 44 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(".\r\n /// \r\n /// \r\n /// {Description}.\r\n " + - " /// \r\n public static readonly "); + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 49 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(");\r\n /// \r\n /// Gets the "); + #line 46 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(");\r\n /// \r\n /// Gets "); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" as a raw UTF8 string.\r\n /// \r\n /// \r\n //" + - "/ {Description}.\r\n /// \r\n public static ReadOnlySpan "); + #line 48 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a UTF8 string.\r\n /// \r\n public static ReadOnlySpan "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.AsPropertyName )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("Utf8 => "); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 56 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 50 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write("u8;\r\n"); #line default #line hidden - #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 51 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsBoolean) { @@ -233,74 +231,73 @@ namespace "); #line default #line hidden - #line 60 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 54 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 55 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 66 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 57 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 67 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 58 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNumber) { @@ -308,74 +305,73 @@ namespace "); #line default #line hidden - #line 70 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 61 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 62 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 64 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 77 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 65 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsObject) { @@ -383,74 +379,73 @@ namespace "); #line default #line hidden - #line 80 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 68 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 81 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 69 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 71 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 87 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 72 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsArray) { @@ -458,74 +453,73 @@ namespace "); #line default #line hidden - #line 90 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 75 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 91 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); + #line 76 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 78 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 97 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 79 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } else if (enumValue.IsNull) { @@ -533,62 +527,50 @@ namespace "); #line default #line hidden - #line 100 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); - - #line default - #line hidden - - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 82 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets \"null\" as a JSON value.\r\n /// \r\n public static readonly "); #line default #line hidden - #line 101 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n public static readonly "); - - #line default - #line hidden - - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex)); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 106 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 85 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse(\"null\");\r\n"); #line default #line hidden - #line 107 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 86 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } ++enumItemIndex; } @@ -602,75 +584,73 @@ namespace "); #line default #line hidden - #line 116 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(" /// \r\n /// [{Title} || Item "); + #line 95 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" /// \r\n /// Gets "); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.RawStringValue )); #line default #line hidden - #line 117 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" - this.Write("] (with predictable naming).\r\n /// \r\n /// \r\n " + - " /// {Description}.\r\n /// \r\n internal static readonly" + - " "); + #line 96 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + this.Write(" as a JSON value.\r\n /// \r\n internal static readonly "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" Item"); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumItemIndex )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" = "); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( TypeDeclaration.DotnetTypeName )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(".Parse("); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(this.ToStringHelper.ToStringWithCulture( enumValue.SerializedValue )); #line default #line hidden - #line 122 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 98 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(");\r\n"); #line default #line hidden - #line 123 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 99 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" } enumItemIndex++; } @@ -678,13 +658,13 @@ namespace "); #line default #line hidden - #line 126 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 102 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" this.Write(" }\r\n}\r\n"); #line default #line hidden - #line 128 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" + #line 104 "D:\source\corvus-dotnet\Corvus.JsonSchema\Solutions\Corvus.Json.CodeGeneration.Abstractions\SharedTemplates\CodeGenerator.Enum.tt" EndNesting(); #line default diff --git a/Solutions/Corvus.Json.CodeGeneration.Abstractions/SharedTemplates/CodeGenerator.Enum.tt b/Solutions/Corvus.Json.CodeGeneration.Abstractions/SharedTemplates/CodeGenerator.Enum.tt index b36125221..d90da584c 100644 --- a/Solutions/Corvus.Json.CodeGeneration.Abstractions/SharedTemplates/CodeGenerator.Enum.tt +++ b/Solutions/Corvus.Json.CodeGeneration.Abstractions/SharedTemplates/CodeGenerator.Enum.tt @@ -41,68 +41,47 @@ public readonly partial struct <#= TypeDeclaration.DotnetTypeName #> if (enumValue.IsString) { #> /// - /// <#= enumValue.AsPropertyName #>. + /// Gets <#= enumValue.RawStringValue #> as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> <#= enumValue.AsPropertyName #> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); /// - /// Gets the <#= enumValue.AsPropertyName #> as a raw UTF8 string. + /// Gets <#= enumValue.RawStringValue #> as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan <#= enumValue.AsPropertyName #>Utf8 => <#= enumValue.RawStringValue #>u8; <# } else if (enumValue.IsBoolean) { #> /// - /// [{Title} || Item <#= enumItemIndex#>] (with predictable naming). + /// Gets <#= enumValue.SerializedValue #> as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex #> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); <# } else if (enumValue.IsNumber) { #> /// - /// [{Title} || Item <#= enumItemIndex #>] (with predictable naming). + /// Gets <#= enumValue.SerializedValue #> as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex #> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); <# } else if (enumValue.IsObject) { #> /// - /// [{Title} || Item <#= enumItemIndex#>] (with predictable naming). + /// Gets <#= enumValue.SerializedValue #> as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex#> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); <# } else if (enumValue.IsArray) { #> /// - /// [{Title} || Item <#= enumItemIndex #>] (with predictable naming). + /// Gets <#= enumValue.SerializedValue #> as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex #> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); <# } else if (enumValue.IsNull) { #> /// - /// [{Title} || Item <#= enumItemIndex #>] (with predictable naming). + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// public static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex#> = <#= TypeDeclaration.DotnetTypeName #>.Parse("null"); <# } ++enumItemIndex; @@ -114,11 +93,8 @@ public readonly partial struct <#= TypeDeclaration.DotnetTypeName #> if (enumValue.IsString) { #> /// - /// [{Title} || Item <#= enumItemIndex #>] (with predictable naming). + /// Gets <#= enumValue.RawStringValue #> as a JSON value. /// - /// - /// {Description}. - /// internal static readonly <#= TypeDeclaration.DotnetTypeName #> Item<#= enumItemIndex #> = <#= TypeDeclaration.DotnetTypeName #>.Parse(<#= enumValue.SerializedValue #>); <# } enumItemIndex++; diff --git a/Solutions/Corvus.Json.JsonSchema.Draft201909/Draft201909/Validation.SimpleTypes.Enum.cs b/Solutions/Corvus.Json.JsonSchema.Draft201909/Draft201909/Validation.SimpleTypes.Enum.cs index 6b15f1ddb..b41a8ba9f 100644 --- a/Solutions/Corvus.Json.JsonSchema.Draft201909/Draft201909/Validation.SimpleTypes.Enum.cs +++ b/Solutions/Corvus.Json.JsonSchema.Draft201909/Draft201909/Validation.SimpleTypes.Enum.cs @@ -27,158 +27,95 @@ public readonly partial struct SimpleTypes public static class EnumValues { /// - /// Array. + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Array = SimpleTypes.Parse("\"array\""); /// - /// Gets the Array as a raw UTF8 string. + /// Gets "array" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ArrayUtf8 => "array"u8; /// - /// Boolean. + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Boolean = SimpleTypes.Parse("\"boolean\""); /// - /// Gets the Boolean as a raw UTF8 string. + /// Gets "boolean" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan BooleanUtf8 => "boolean"u8; /// - /// Integer. + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Integer = SimpleTypes.Parse("\"integer\""); /// - /// Gets the Integer as a raw UTF8 string. + /// Gets "integer" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan IntegerUtf8 => "integer"u8; /// - /// Null. + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Null = SimpleTypes.Parse("\"null\""); /// - /// Gets the Null as a raw UTF8 string. + /// Gets "null" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NullUtf8 => "null"u8; /// - /// Number. + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Number = SimpleTypes.Parse("\"number\""); /// - /// Gets the Number as a raw UTF8 string. + /// Gets "number" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NumberUtf8 => "number"u8; /// - /// Object. + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Object = SimpleTypes.Parse("\"object\""); /// - /// Gets the Object as a raw UTF8 string. + /// Gets "object" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ObjectUtf8 => "object"u8; /// - /// String. + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes String = SimpleTypes.Parse("\"string\""); /// - /// Gets the String as a raw UTF8 string. + /// Gets "string" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan StringUtf8 => "string"u8; /// - /// [{Title} || Item 0] (with predictable naming). + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item0 = SimpleTypes.Parse("\"array\""); /// - /// [{Title} || Item 1] (with predictable naming). + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item1 = SimpleTypes.Parse("\"boolean\""); /// - /// [{Title} || Item 2] (with predictable naming). + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item2 = SimpleTypes.Parse("\"integer\""); /// - /// [{Title} || Item 3] (with predictable naming). + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item3 = SimpleTypes.Parse("\"null\""); /// - /// [{Title} || Item 4] (with predictable naming). + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item4 = SimpleTypes.Parse("\"number\""); /// - /// [{Title} || Item 5] (with predictable naming). + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item5 = SimpleTypes.Parse("\"object\""); /// - /// [{Title} || Item 6] (with predictable naming). + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item6 = SimpleTypes.Parse("\"string\""); } } diff --git a/Solutions/Corvus.Json.JsonSchema.Draft202012/Draft202012/Validation.SimpleTypes.Enum.cs b/Solutions/Corvus.Json.JsonSchema.Draft202012/Draft202012/Validation.SimpleTypes.Enum.cs index bd4454b4f..56ec18205 100644 --- a/Solutions/Corvus.Json.JsonSchema.Draft202012/Draft202012/Validation.SimpleTypes.Enum.cs +++ b/Solutions/Corvus.Json.JsonSchema.Draft202012/Draft202012/Validation.SimpleTypes.Enum.cs @@ -27,158 +27,95 @@ public readonly partial struct SimpleTypes public static class EnumValues { /// - /// Array. + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Array = SimpleTypes.Parse("\"array\""); /// - /// Gets the Array as a raw UTF8 string. + /// Gets "array" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ArrayUtf8 => "array"u8; /// - /// Boolean. + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Boolean = SimpleTypes.Parse("\"boolean\""); /// - /// Gets the Boolean as a raw UTF8 string. + /// Gets "boolean" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan BooleanUtf8 => "boolean"u8; /// - /// Integer. + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Integer = SimpleTypes.Parse("\"integer\""); /// - /// Gets the Integer as a raw UTF8 string. + /// Gets "integer" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan IntegerUtf8 => "integer"u8; /// - /// Null. + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Null = SimpleTypes.Parse("\"null\""); /// - /// Gets the Null as a raw UTF8 string. + /// Gets "null" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NullUtf8 => "null"u8; /// - /// Number. + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Number = SimpleTypes.Parse("\"number\""); /// - /// Gets the Number as a raw UTF8 string. + /// Gets "number" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NumberUtf8 => "number"u8; /// - /// Object. + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Object = SimpleTypes.Parse("\"object\""); /// - /// Gets the Object as a raw UTF8 string. + /// Gets "object" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ObjectUtf8 => "object"u8; /// - /// String. + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes String = SimpleTypes.Parse("\"string\""); /// - /// Gets the String as a raw UTF8 string. + /// Gets "string" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan StringUtf8 => "string"u8; /// - /// [{Title} || Item 0] (with predictable naming). + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item0 = SimpleTypes.Parse("\"array\""); /// - /// [{Title} || Item 1] (with predictable naming). + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item1 = SimpleTypes.Parse("\"boolean\""); /// - /// [{Title} || Item 2] (with predictable naming). + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item2 = SimpleTypes.Parse("\"integer\""); /// - /// [{Title} || Item 3] (with predictable naming). + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item3 = SimpleTypes.Parse("\"null\""); /// - /// [{Title} || Item 4] (with predictable naming). + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item4 = SimpleTypes.Parse("\"number\""); /// - /// [{Title} || Item 5] (with predictable naming). + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item5 = SimpleTypes.Parse("\"object\""); /// - /// [{Title} || Item 6] (with predictable naming). + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item6 = SimpleTypes.Parse("\"string\""); } } diff --git a/Solutions/Corvus.Json.JsonSchema.Draft6/Draft6/Schema.SimpleTypes.Enum.cs b/Solutions/Corvus.Json.JsonSchema.Draft6/Draft6/Schema.SimpleTypes.Enum.cs index 215eec06a..97ea2a9e4 100644 --- a/Solutions/Corvus.Json.JsonSchema.Draft6/Draft6/Schema.SimpleTypes.Enum.cs +++ b/Solutions/Corvus.Json.JsonSchema.Draft6/Draft6/Schema.SimpleTypes.Enum.cs @@ -27,158 +27,95 @@ public readonly partial struct SimpleTypes public static class EnumValues { /// - /// Array. + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Array = SimpleTypes.Parse("\"array\""); /// - /// Gets the Array as a raw UTF8 string. + /// Gets "array" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ArrayUtf8 => "array"u8; /// - /// Boolean. + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Boolean = SimpleTypes.Parse("\"boolean\""); /// - /// Gets the Boolean as a raw UTF8 string. + /// Gets "boolean" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan BooleanUtf8 => "boolean"u8; /// - /// Integer. + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Integer = SimpleTypes.Parse("\"integer\""); /// - /// Gets the Integer as a raw UTF8 string. + /// Gets "integer" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan IntegerUtf8 => "integer"u8; /// - /// Null. + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Null = SimpleTypes.Parse("\"null\""); /// - /// Gets the Null as a raw UTF8 string. + /// Gets "null" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NullUtf8 => "null"u8; /// - /// Number. + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Number = SimpleTypes.Parse("\"number\""); /// - /// Gets the Number as a raw UTF8 string. + /// Gets "number" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NumberUtf8 => "number"u8; /// - /// Object. + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Object = SimpleTypes.Parse("\"object\""); /// - /// Gets the Object as a raw UTF8 string. + /// Gets "object" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ObjectUtf8 => "object"u8; /// - /// String. + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes String = SimpleTypes.Parse("\"string\""); /// - /// Gets the String as a raw UTF8 string. + /// Gets "string" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan StringUtf8 => "string"u8; /// - /// [{Title} || Item 0] (with predictable naming). + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item0 = SimpleTypes.Parse("\"array\""); /// - /// [{Title} || Item 1] (with predictable naming). + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item1 = SimpleTypes.Parse("\"boolean\""); /// - /// [{Title} || Item 2] (with predictable naming). + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item2 = SimpleTypes.Parse("\"integer\""); /// - /// [{Title} || Item 3] (with predictable naming). + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item3 = SimpleTypes.Parse("\"null\""); /// - /// [{Title} || Item 4] (with predictable naming). + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item4 = SimpleTypes.Parse("\"number\""); /// - /// [{Title} || Item 5] (with predictable naming). + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item5 = SimpleTypes.Parse("\"object\""); /// - /// [{Title} || Item 6] (with predictable naming). + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item6 = SimpleTypes.Parse("\"string\""); } } diff --git a/Solutions/Corvus.Json.JsonSchema.Draft7/Draft7/Schema.SimpleTypes.Enum.cs b/Solutions/Corvus.Json.JsonSchema.Draft7/Draft7/Schema.SimpleTypes.Enum.cs index 53d803874..a1b3ec5f6 100644 --- a/Solutions/Corvus.Json.JsonSchema.Draft7/Draft7/Schema.SimpleTypes.Enum.cs +++ b/Solutions/Corvus.Json.JsonSchema.Draft7/Draft7/Schema.SimpleTypes.Enum.cs @@ -27,158 +27,95 @@ public readonly partial struct SimpleTypes public static class EnumValues { /// - /// Array. + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Array = SimpleTypes.Parse("\"array\""); /// - /// Gets the Array as a raw UTF8 string. + /// Gets "array" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ArrayUtf8 => "array"u8; /// - /// Boolean. + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Boolean = SimpleTypes.Parse("\"boolean\""); /// - /// Gets the Boolean as a raw UTF8 string. + /// Gets "boolean" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan BooleanUtf8 => "boolean"u8; /// - /// Integer. + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Integer = SimpleTypes.Parse("\"integer\""); /// - /// Gets the Integer as a raw UTF8 string. + /// Gets "integer" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan IntegerUtf8 => "integer"u8; /// - /// Null. + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Null = SimpleTypes.Parse("\"null\""); /// - /// Gets the Null as a raw UTF8 string. + /// Gets "null" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NullUtf8 => "null"u8; /// - /// Number. + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Number = SimpleTypes.Parse("\"number\""); /// - /// Gets the Number as a raw UTF8 string. + /// Gets "number" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan NumberUtf8 => "number"u8; /// - /// Object. + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes Object = SimpleTypes.Parse("\"object\""); /// - /// Gets the Object as a raw UTF8 string. + /// Gets "object" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan ObjectUtf8 => "object"u8; /// - /// String. + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// public static readonly SimpleTypes String = SimpleTypes.Parse("\"string\""); /// - /// Gets the String as a raw UTF8 string. + /// Gets "string" as a UTF8 string. /// - /// - /// {Description}. - /// public static ReadOnlySpan StringUtf8 => "string"u8; /// - /// [{Title} || Item 0] (with predictable naming). + /// Gets "array" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item0 = SimpleTypes.Parse("\"array\""); /// - /// [{Title} || Item 1] (with predictable naming). + /// Gets "boolean" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item1 = SimpleTypes.Parse("\"boolean\""); /// - /// [{Title} || Item 2] (with predictable naming). + /// Gets "integer" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item2 = SimpleTypes.Parse("\"integer\""); /// - /// [{Title} || Item 3] (with predictable naming). + /// Gets "null" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item3 = SimpleTypes.Parse("\"null\""); /// - /// [{Title} || Item 4] (with predictable naming). + /// Gets "number" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item4 = SimpleTypes.Parse("\"number\""); /// - /// [{Title} || Item 5] (with predictable naming). + /// Gets "object" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item5 = SimpleTypes.Parse("\"object\""); /// - /// [{Title} || Item 6] (with predictable naming). + /// Gets "string" as a JSON value. /// - /// - /// {Description}. - /// internal static readonly SimpleTypes Item6 = SimpleTypes.Parse("\"string\""); } }