* Add Nullable and WarningsAsErrors to Build.props * Remove Nullable from cs proj, add ImplicitUsings to build.props * Fix errors in core * Fix in JsonSchema * Fix infrastructure * Add non-ambiguous using * Fix Web/Lucene * Fix backoffice * Fix up new build errors from merge Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
14 lines
350 B
C#
14 lines
350 B
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
using System;
|
|
using NJsonSchema.Generation;
|
|
|
|
namespace JsonSchema
|
|
{
|
|
internal class NamespacePrefixedSchemaNameGenerator : DefaultSchemaNameGenerator
|
|
{
|
|
public override string Generate(Type type) => type.Namespace?.Replace(".", string.Empty) + base.Generate(type);
|
|
}
|
|
}
|