Fixed StyleCop issues in JsonSchema project

This commit is contained in:
Bjarke Berg
2021-10-19 13:11:02 +02:00
parent 7020793235
commit ca9dc94392
7 changed files with 92 additions and 44 deletions

View File

@@ -1,13 +1,13 @@
using System;
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System;
using NJsonSchema.Generation;
namespace JsonSchema
{
public class NamespacePrefixedSchemaNameGenerator : DefaultSchemaNameGenerator
internal class NamespacePrefixedSchemaNameGenerator : DefaultSchemaNameGenerator
{
public override string Generate(Type type)
{
return type.Namespace.Replace(".", String.Empty) + base.Generate(type);
}
public override string Generate(Type type) => type.Namespace.Replace(".", string.Empty) + base.Generate(type);
}
}