AIJsonSchemaTransformContext Struct
Definition
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 for transforming a schema node withing a larger schema document.
public value class AIJsonSchemaTransformContext
public readonly struct AIJsonSchemaTransformContext
type AIJsonSchemaTransformContext = struct
Public Structure AIJsonSchemaTransformContext
- Inheritance
Remarks
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.
Properties
IsCollectionElementSchema |
Gets a value indicating whether the current schema is a collection element. |
IsDictionaryValueSchema |
Gets a value indicating whether the current schema is a dictionary value. |
Path |
Gets the path to the schema document currently being generated. |
PropertyName |
Gets the containing property name if the current schema is a property of an object. |