<PackageReference Include="NJsonSchema" Version="11.2.0" />

IReflectionService

public interface IReflectionService
Provides methods to reflect on types.
using Namotion.Reflection; using System; using System.Runtime.CompilerServices; namespace NJsonSchema.Generation { [System.Runtime.CompilerServices.NullableContext(1)] public interface IReflectionService { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 1, 1, 2 })] Func<object, string> GetEnumValueConverter(JsonSchemaGeneratorSettings settings); string GetPropertyName(ContextualAccessorInfo accessorInfo, JsonSchemaGeneratorSettings settings); void GenerateProperties(JsonSchema schema, ContextualType contextualType, JsonSchemaGeneratorSettings settings, JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver); JsonTypeDescription GetDescription(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling, JsonSchemaGeneratorSettings settings); JsonTypeDescription GetDescription(ContextualType contextualType, JsonSchemaGeneratorSettings settings); bool IsNullable(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling); bool IsStringEnum(ContextualType contextualType, JsonSchemaGeneratorSettings settings); } }