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

JsonSchemaSerializationContext

The JSON Schema serialization context holding information about the current serialization.
using System; namespace NJsonSchema.Infrastructure { public class JsonSchemaSerializationContext { [ThreadStatic] private static SchemaType _currentSchemaType; public static SchemaType CurrentSchemaType { get { return _currentSchemaType; } set { _currentSchemaType = value; } } } }