<PackageReference Include="System.Text.Json" Version="10.0.0-preview.3.25171.5" />

JsonSchemaExporterContext

Defines the context for the generated JSON schema for a particular node in a type graph.
using System.Runtime.CompilerServices; using System.Text.Json.Serialization.Metadata; namespace System.Text.Json.Schema { [NullableContext(2)] [Nullable(0)] public readonly struct JsonSchemaExporterContext { internal readonly string[] _path; [Nullable(1)] public JsonTypeInfo TypeInfo { [NullableContext(1)] get; } public JsonPropertyInfo PropertyInfo { get; } public JsonTypeInfo BaseTypeInfo { get; } [Nullable(new byte[] { 0, 1 })] public ReadOnlySpan<string> Path { [return: Nullable(new byte[] { 0, 1 })] get { return _path; } } internal JsonSchemaExporterContext(JsonTypeInfo typeInfo, JsonPropertyInfo propertyInfo, JsonTypeInfo baseTypeInfo, string[] path) { TypeInfo = typeInfo; PropertyInfo = propertyInfo; BaseTypeInfo = baseTypeInfo; _path = path; } } }