From e75e2ddbda3eb64b2948252d9068c5a05dae12cd Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 5 Jan 2024 13:45:37 +0100 Subject: [PATCH] BillingData: Move schema to Resources/ --- Elwig/Elwig.csproj | 2 +- Elwig/Helpers/Billing/BillingData.cs | 2 +- .../Schemas/PaymentVariantData.json} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename Elwig/{Schemas/payment_variant.json => Resources/Schemas/PaymentVariantData.json} (100%) diff --git a/Elwig/Elwig.csproj b/Elwig/Elwig.csproj index 06b5d04..2271b96 100644 --- a/Elwig/Elwig.csproj +++ b/Elwig/Elwig.csproj @@ -14,7 +14,7 @@ - + diff --git a/Elwig/Helpers/Billing/BillingData.cs b/Elwig/Helpers/Billing/BillingData.cs index 986e59d..94d678f 100644 --- a/Elwig/Helpers/Billing/BillingData.cs +++ b/Elwig/Helpers/Billing/BillingData.cs @@ -11,7 +11,7 @@ namespace Elwig.Helpers.Billing { public static JsonSchema? Schema { get; private set; } public static async Task Init() { - var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Elwig.Schemas.payment_variant.json"); + var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Elwig.Resources.Schemas.PaymentVariantData.json"); Schema = await JsonSchema.FromJsonAsync(stream ?? throw new ArgumentException("JSON schema not found")); } diff --git a/Elwig/Schemas/payment_variant.json b/Elwig/Resources/Schemas/PaymentVariantData.json similarity index 100% rename from Elwig/Schemas/payment_variant.json rename to Elwig/Resources/Schemas/PaymentVariantData.json