BillingData: Move schema to Resources/
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\Images\Elwig.png" />
|
||||
<Content Include="Resources\Images\Elwig.ico" />
|
||||
<EmbeddedResource Include="Schemas\payment_variant.json" />
|
||||
<EmbeddedResource Include="Resources\Schemas\PaymentVariantData.json" />
|
||||
<EmbeddedResource Include="Resources\Sql\*" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -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