Skip to content

Commit

Permalink
Merge pull request #112 from neuroglia-io/fix-roa
Browse files Browse the repository at this point in the history
Fixed the ResourceMetadata to return the qualified name of the resource
  • Loading branch information
cdavernas authored Sep 2, 2024
2 parents 08b022f + 82a1815 commit 6fab7f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using Humanizer.Localisation;

namespace Neuroglia.Data.Infrastructure.ResourceOriented;

/// <summary>
Expand Down Expand Up @@ -92,6 +94,6 @@ public ResourceMetadata(string name, string? @namespace = null, IDictionary<stri
public IDictionary<string, object>? ExtensionData { get; set; }

/// <inheritdoc/>
public override string? ToString() => string.IsNullOrWhiteSpace(this.Name) ? base.ToString() : string.IsNullOrWhiteSpace(this.Namespace) ? this.Name : $"{this.Namespace}.{this.Name}";
public override string? ToString() => string.IsNullOrWhiteSpace(this.Namespace) ? this.Name : $"{this.Name}.{this.Namespace}";

}

0 comments on commit 6fab7f5

Please sign in to comment.