1 instantiation of JsonSchemaExporterContext
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
571return new JsonSchemaExporterContext(typeInfo, propertyInfo, baseTypeInfo, [.. _currentPath]);
18 references to JsonSchemaExporterContext
Microsoft.AspNetCore.OpenApi (10)
Extensions\JsonNodeSchemaExtensions.cs (10)
206/// <param name="context">The <see cref="JsonSchemaExporterContext"/> associated with the <see paramref="schema"/>.</param> 207internal static void ApplyPrimitiveFormats(this JsonNode schema, JsonSchemaExporterContext context) 426/// <param name="context">The <see cref="JsonSchemaExporterContext"/> associated with the current type.</param> 428internal static void MapPolymorphismOptionsToDiscriminator(this JsonNode schema, JsonSchemaExporterContext context, Func<JsonTypeInfo, string?> createSchemaReferenceId) 471/// <param name="context">The <see cref="JsonSchemaExporterContext"/> associated with the current type.</param> 473internal static void ApplySchemaReferenceId(this JsonNode schema, JsonSchemaExporterContext context, Func<JsonTypeInfo, string?> createSchemaReferenceId) 507/// <param name="context">The <see cref="JsonSchemaExporterContext"/> associated with the current type.</param> 508private static bool IsNonAbstractTypeWithoutDerivedTypeReference(JsonSchemaExporterContext context) 519/// <param name="context">The <see cref="JsonSchemaExporterContext"/> associated with the current type.</param> 520private static bool IsNonAbstractTypeWithDerivedTypeReference(JsonSchemaExporterContext context)
Microsoft.Extensions.AI.Abstractions (3)
Utilities\AIJsonSchemaCreateContext.cs (2)
23private readonly JsonSchemaExporterContext _exporterContext; 25internal AIJsonSchemaCreateContext(JsonSchemaExporterContext exporterContext)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
270JsonNode TransformSchemaNode(JsonSchemaExporterContext schemaExporterContext, JsonNode schema)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchema.cs (1)
87public JsonSchemaExporterContext? ExporterContext { get; set; }
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
71JsonSchemaExporterContext exporterContext = state.CreateContext(typeInfo, propertyInfo, parentPolymorphicTypeInfo); 547public bool TryGetExistingJsonPointer(in JsonSchemaExporterContext context, [NotNullWhen(true)] out string? existingJsonPointer) 569public JsonSchemaExporterContext CreateContext(JsonTypeInfo typeInfo, JsonPropertyInfo? propertyInfo, JsonTypeInfo? baseTypeInfo)
System\Text\Json\Schema\JsonSchemaExporterOptions.cs (1)
31public Func<JsonSchemaExporterContext, JsonNode, JsonNode>? TransformSchemaNode { get; init; }