Skip to content

Commit

Permalink
task: updated static meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanglr committed Jul 26, 2024
1 parent 1ae6a87 commit 739fa10
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
14 changes: 7 additions & 7 deletions src/Primitively/EmbeddedResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Primitively;
/// <summary>
/// Contains methods for retrieving embedded resources.
/// </summary>
internal readonly struct EmbeddedResources
internal static class EmbeddedResources
{
public static readonly string AutoGeneratedHeader = GetEmbeddedResource(nameof(AutoGeneratedHeader));
public static readonly string JsonConverterAttribute = GetEmbeddedResource(nameof(JsonConverterAttribute));
Expand All @@ -20,7 +20,7 @@ internal readonly struct EmbeddedResources
/// <summary>
/// Contains methods for retrieving DateOnly related embedded resources.
/// </summary>
public readonly struct DateOnly
public static class DateOnly
{
public static readonly string Base = GetEmbeddedResource(nameof(DateOnly), nameof(Base));
public static readonly string JsonConverter = GetEmbeddedResource(nameof(DateOnly), nameof(JsonConverter));
Expand All @@ -30,7 +30,7 @@ public readonly struct DateOnly
/// <summary>
/// Contains methods for retrieving Guid related embedded resources.
/// </summary>
public readonly struct Guid
public static class Guid
{
public static readonly string Base = GetEmbeddedResource(nameof(Guid), nameof(Base));
public static readonly string JsonConverter = GetEmbeddedResource(nameof(Guid), nameof(JsonConverter));
Expand All @@ -40,17 +40,17 @@ public readonly struct Guid
/// <summary>
/// Contains methods for retrieving Numeric related embedded resources.
/// </summary>
public readonly struct Numeric
public static class Numeric
{
public readonly struct FloatingPoint
public static class FloatingPoint
{
public static readonly string Base = GetEmbeddedResource(nameof(Numeric), nameof(FloatingPoint), nameof(Base));
public static readonly string DecimalPreMatchCheckMethod = GetEmbeddedResource(nameof(Numeric), nameof(FloatingPoint), nameof(DecimalPreMatchCheckMethod));
public static readonly string DoublePreMatchCheckMethod = GetEmbeddedResource(nameof(Numeric), nameof(FloatingPoint), nameof(DoublePreMatchCheckMethod));
public static readonly string SinglePreMatchCheckMethod = GetEmbeddedResource(nameof(Numeric), nameof(FloatingPoint), nameof(SinglePreMatchCheckMethod));
}

public readonly struct Integer
public static class Integer
{
public static readonly string Base = GetEmbeddedResource(nameof(Numeric), nameof(Integer), nameof(Base));
}
Expand All @@ -62,7 +62,7 @@ public readonly struct Integer
/// <summary>
/// Contains methods for retrieving String related embedded resources.
/// </summary>
public readonly struct String
public static class String
{
public static readonly string Base = GetEmbeddedResource(nameof(String), nameof(Base));
public static readonly string DefaultPartialMethods = GetEmbeddedResource(nameof(String), nameof(DefaultPartialMethods));
Expand Down
48 changes: 24 additions & 24 deletions src/Primitively/MetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ namespace Primitively;
/// <summary>
/// Contains metadata about various Primitively types.
/// </summary>
internal readonly struct MetaData
internal static class MetaData
{
/// <summary>
/// Contains metadata about the DateOnly Primitively type.
/// </summary>
public readonly struct DateOnly
public static class DateOnly
{
public static readonly string Interface = typeof(IDateOnly).FullName;
public static readonly string Type = typeof(DateTime).FullName;
Expand All @@ -19,7 +19,7 @@ public readonly struct DateOnly
/// <summary>
/// Contains metadata about the ISO 8601 format for the DateOnly Primitively type.
/// </summary>
public readonly struct Iso8601
public static class Iso8601
{
public const string Example = "2022-12-31";
public const string Format = "yyyy-MM-dd";
Expand All @@ -30,7 +30,7 @@ public readonly struct Iso8601
/// <summary>
/// Contains metadata about the Guid Primitively type.
/// </summary>
public readonly struct Guid
public static class Guid
{
public static readonly string Interface = typeof(IGuid).FullName;
public static readonly string Type = typeof(System.Guid).FullName;
Expand All @@ -39,7 +39,7 @@ public readonly struct Guid
/// <summary>
/// Contains metadata about the 'B' format for the Guid Primitively type.
/// </summary>
public readonly struct B
public static class B
{
public const string Example = "{2c48c152-7cb7-4f51-8f01-704454f36e60}";
public const string Format = "B";
Expand All @@ -49,7 +49,7 @@ public readonly struct B
/// <summary>
/// Contains metadata about the 'D' format for the Guid Primitively type.
/// </summary>
public readonly struct D
public static class D
{
public const string Example = "2c48c152-7cb7-4f51-8f01-704454f36e60";
public const string Format = "D";
Expand All @@ -59,7 +59,7 @@ public readonly struct D
/// <summary>
/// Contains metadata about the 'N' format for the Guid Primitively type.
/// </summary>
public readonly struct N
public static class N
{
public const string Example = "2c48c1527cb74f518f01704454f36e60";
public const string Format = "N";
Expand All @@ -69,7 +69,7 @@ public readonly struct N
/// <summary>
/// Contains metadata about the 'P' format for the Guid Primitively type.
/// </summary>
public readonly struct P
public static class P
{
public const string Example = "(2c48c152-7cb7-4f51-8f01-704454f36e60)";
public const string Format = "P";
Expand All @@ -79,7 +79,7 @@ public readonly struct P
/// <summary>
/// Contains metadata about the 'X' format for the Guid Primitively type.
/// </summary>
public readonly struct X
public static class X
{
public const string Example = "{0x2c48c152,0x7cb7,0x4f51,{0x8f,0x01,0x70,0x44,0x54,0xf3,0x6e,0x60}}";
public const string Format = "X";
Expand All @@ -90,9 +90,9 @@ public readonly struct X
/// <summary>
/// Contains metadata about various Numeric Primitively types.
/// </summary>
public readonly struct Numeric
public static class Numeric
{
public readonly struct FloatingPoint
public static class FloatingPoint
{
public const int Digits = -1;
public const int MinDigits = 0;
Expand All @@ -101,7 +101,7 @@ public readonly struct FloatingPoint
/// <summary>
/// Contains metadata about the Decimal Primitively type.
/// </summary>
public readonly struct Decimal
public static class Decimal
{
public static readonly string Example = (decimal.MaxValue / 2).ToString();
public static readonly string Interface = typeof(IDecimal).FullName;
Expand All @@ -116,7 +116,7 @@ public readonly struct Decimal
/// <summary>
/// Contains metadata about the Double Primitively type.
/// </summary>
public readonly struct Double
public static class Double
{
public static readonly string Example = (double.MaxValue / 2).ToString("E");
public static readonly string Interface = typeof(IDouble).FullName;
Expand All @@ -131,7 +131,7 @@ public readonly struct Double
/// <summary>
/// Contains metadata about the Single (float) Primitively type.
/// </summary>
public readonly struct Single
public static class Single
{
public static readonly string Example = (float.MaxValue / 2).ToString("E");
public static readonly string Interface = typeof(ISingle).FullName;
Expand All @@ -144,12 +144,12 @@ public readonly struct Single
}
}

public readonly struct Integer
public static class Integer
{
/// <summary>
/// Contains metadata about the Byte Primitively type.
/// </summary>
public readonly struct Byte
public static class Byte
{
public static readonly string Example = $"{byte.MaxValue / 2}";
public static readonly string Interface = typeof(IByte).FullName;
Expand All @@ -163,7 +163,7 @@ public readonly struct Byte
/// <summary>
/// Contains metadata about the Int Primitively type.
/// </summary>
public readonly struct Int
public static class Int
{
public static readonly string Example = $"{int.MaxValue / 2}";
public static readonly string Interface = typeof(IInt).FullName;
Expand All @@ -177,7 +177,7 @@ public readonly struct Int
/// <summary>
/// Contains metadata about the Long Primitively type.
/// </summary>
public readonly struct Long
public static class Long
{
public static readonly string Example = $"{long.MaxValue / 2}";
public static readonly string Interface = typeof(ILong).FullName;
Expand All @@ -191,7 +191,7 @@ public readonly struct Long
/// <summary>
/// Contains metadata about the SByte Primitively type.
/// </summary>
public readonly struct SByte
public static class SByte
{
public static readonly string Example = $"{sbyte.MaxValue / 2}";
public static readonly string Interface = typeof(ISByte).FullName;
Expand All @@ -205,7 +205,7 @@ public readonly struct SByte
/// <summary>
/// Contains metadata about the Short Primitively type.
/// </summary>
public readonly struct Short
public static class Short
{
public static readonly string Example = $"{short.MaxValue / 2}";
public static readonly string Interface = typeof(IShort).FullName;
Expand All @@ -219,7 +219,7 @@ public readonly struct Short
/// <summary>
/// Contains metadata about the UInt Primitively type.
/// </summary>
public readonly struct UInt
public static class UInt
{
public static readonly string Example = $"{uint.MaxValue / 2}";
public static readonly string Interface = typeof(IUInt).FullName;
Expand All @@ -233,7 +233,7 @@ public readonly struct UInt
/// <summary>
/// Contains metadata about the ULong Primitively type.
/// </summary>
public readonly struct ULong
public static class ULong
{
public static readonly string Example = $"{ulong.MaxValue / 2}";
public static readonly string Interface = typeof(IULong).FullName;
Expand All @@ -247,7 +247,7 @@ public readonly struct ULong
/// <summary>
/// Contains metadata about the UShort Primitively type.
/// </summary>
public readonly struct UShort
public static class UShort
{
public static readonly string Example = $"{ushort.MaxValue / 2}";
public static readonly string Interface = typeof(IUShort).FullName;
Expand All @@ -263,7 +263,7 @@ public readonly struct UShort
/// <summary>
/// Contains metadata about the String Primitively type.
/// </summary>
public readonly struct String
public static class String
{
public static readonly string Interface = typeof(IString).FullName;
public static readonly string Type = typeof(string).FullName;
Expand Down

0 comments on commit 739fa10

Please sign in to comment.