Skip to content

Commit

Permalink
Add plugins schemas attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Puchaczov committed Oct 11, 2024
1 parent 915a73d commit cdba470
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Musoq.Schema/Attributes/EntityPropertyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Musoq.Schema.Attributes;

public class EntityPropertyAttribute : Attribute
{
}
public class EntityPropertyAttribute : Attribute;
24 changes: 24 additions & 0 deletions Musoq.Schema/Attributes/PluginSchemasAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;

namespace Musoq.Schema.Attributes;

/// <summary>
/// Attribute to mark available schemas within the plugin
/// </summary>
[AttributeUsage(AttributeTargets.Assembly)]
public class PluginSchemasAttribute : Attribute
{
/// <summary>
/// Schemas names.
/// </summary>
public string[] Schemas { get; }

/// <summary>
/// Constructor.
/// </summary>
/// <param name="schemas">Schemas names.</param>
public PluginSchemasAttribute(params string[] schemas)
{
Schemas = schemas;
}
}
2 changes: 1 addition & 1 deletion Musoq.Schema/Musoq.Schema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>7.3.0-rc2</Version>
<Version>7.3.0-rc3</Version>
<Authors>Jakub Puchała</Authors>
<Product>Musoq</Product>
<PackageProjectUrl>https://github.com/Puchaczov/Musoq</PackageProjectUrl>
Expand Down

0 comments on commit cdba470

Please sign in to comment.