13 references to JsonSchemaExporterContext
Microsoft.AspNetCore.OpenApi (8)
Extensions\JsonNodeSchemaExtensions.cs (8)
186
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the <see paramref="schema"/>.</param>
188
internal static void ApplyPrimitiveTypesAndFormats(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
356
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
358
internal static void MapPolymorphismOptionsToDiscriminator(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
396
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
398
internal static void ApplySchemaReferenceId(this JsonNode schema,
JsonSchemaExporterContext
context, Func<JsonTypeInfo, string?> createSchemaReferenceId)
416
/// <param name="context">The <see cref="
JsonSchemaExporterContext
"/> associated with the current type.</param>
417
private static bool IsNonAbstractTypeWithoutDerivedTypeReference(
JsonSchemaExporterContext
context)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchema.cs (1)
98
public
JsonSchemaExporterContext
? ExporterContext { get; set; }
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
80
JsonSchemaExporterContext
exporterContext = state.CreateContext(typeInfo, propertyInfo, parentPolymorphicTypeInfo);
436
public bool TryGetExistingJsonPointer(in
JsonSchemaExporterContext
context, [NotNullWhen(true)] out string? existingJsonPointer)
458
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; }