2021-10-19 13:11:02 +02:00
|
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
2021-06-25 09:35:39 +02:00
|
|
|
|
using NJsonSchema.Generation;
|
|
|
|
|
|
|
|
|
|
|
|
namespace JsonSchema
|
|
|
|
|
|
{
|
2021-10-19 13:11:02 +02:00
|
|
|
|
internal class NamespacePrefixedSchemaNameGenerator : DefaultSchemaNameGenerator
|
2021-06-25 09:35:39 +02:00
|
|
|
|
{
|
2021-10-19 13:11:02 +02:00
|
|
|
|
public override string Generate(Type type) => type.Namespace.Replace(".", string.Empty) + base.Generate(type);
|
2021-06-25 09:35:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|