AIJsonSchemaCreateContext Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the context in which a JSON schema within a type graph is being generated.
public value class AIJsonSchemaCreateContext
public readonly struct AIJsonSchemaCreateContext
type AIJsonSchemaCreateContext = struct
Public Structure AIJsonSchemaCreateContext
- Inheritance
This struct is being passed to the user-provided TransformSchemaNode callback by the CreateJsonSchema(Type, String, Boolean, Object, JsonSerializerOptions, AIJsonSchemaCreateOptions) method and cannot be instantiated directly.
Base |
Gets the type info for the polymorphic base type if generated as a derived type. |
Declaring |
Gets the declaring type of the property or parameter being processed. |
Parameter |
Gets the ICustomAttributeProvider of the constructor parameter associated with the accompanying PropertyInfo. |
Path |
Gets the path to the schema document currently being generated. |
Property |
Gets the ICustomAttributeProvider corresponding to the property or field being processed. |
Property |
Gets the JsonPropertyInfo if the schema is being generated for a property. |
Type |
Gets the JsonTypeInfo for the type being processed. |
Get |
Retrieves a custom attribute of a specified type that is applied to the specified schema node context. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: