diff --git a/src/NJsonSchema/Generation/JsonSchemaResolver.cs b/src/NJsonSchema/Generation/JsonSchemaResolver.cs index 2fb09097f..9e948c680 100644 --- a/src/NJsonSchema/Generation/JsonSchemaResolver.cs +++ b/src/NJsonSchema/Generation/JsonSchemaResolver.cs @@ -68,7 +68,13 @@ public virtual void AddSchema(Type type, bool isIntegerEnumeration, JsonSchema s /// Gets all the schemas. public IEnumerable Schemas => _mappings.Values; - private string GetKey(Type type, bool isIntegerEnum) + /// + /// Gets the mapping key for the given type. + /// + /// The type. + /// Specifies whether the type is an integer enum. + /// The mapping key. + protected virtual string GetKey(Type type, bool isIntegerEnum) { return type.FullName + (isIntegerEnum ? ":Integer" : string.Empty); }