BillingData: Move schema to Resources/
This commit is contained in:
@ -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"));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user