1 instantiation of JsonSchemaExporterContext
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
463
return new
JsonSchemaExporterContext
(typeInfo, propertyInfo, baseTypeInfo, [.. _currentPath]);
14 references to JsonSchemaExporterContext
Microsoft.AspNetCore.OpenApi (8)
Extensions\JsonNodeSchemaExtensions.cs (8)
188
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the <see paramref="schema"/>.</param>
190
internal static void ApplyPrimitiveTypesAndFormats(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
360
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
362
internal static void MapPolymorphismOptionsToDiscriminator(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
400
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
402
internal static void ApplySchemaReferenceId(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
420
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
421
private static bool IsNonAbstractTypeWithoutDerivedTypeReference(
JsonSchemaExporterContext
context)
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1304
private static TAttribute? ResolveAttribute<TAttribute>(this
JsonSchemaExporterContext
ctx)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchema.cs (1)
98
public
JsonSchemaExporterContext
? ExporterContext { get; set; }
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
70
JsonSchemaExporterContext
exporterContext = state.CreateContext(typeInfo, propertyInfo, parentPolymorphicTypeInfo);
439
public bool TryGetExistingJsonPointer(in
JsonSchemaExporterContext
context, [NotNullWhen(true)] out string? existingJsonPointer)
461
public
JsonSchemaExporterContext
CreateContext(JsonTypeInfo typeInfo, JsonPropertyInfo? propertyInfo, JsonTypeInfo? baseTypeInfo)
System\Text\Json\Schema\JsonSchemaExporterOptions.cs (1)
31
public Func<
JsonSchemaExporterContext
, JsonNode, JsonNode>? TransformSchemaNode { get; init; }