AIJsonUtilities.TransformSchema Method

Definition

Transforms the given JSON schema based on the provided options.

public:
 static System::Text::Json::JsonElement TransformSchema(System::Text::Json::JsonElement schema, Microsoft::Extensions::AI::AIJsonSchemaTransformOptions ^ transformOptions);
public static System.Text.Json.JsonElement TransformSchema(System.Text.Json.JsonElement schema, Microsoft.Extensions.AI.AIJsonSchemaTransformOptions transformOptions);
static member TransformSchema : System.Text.Json.JsonElement * Microsoft.Extensions.AI.AIJsonSchemaTransformOptions -> System.Text.Json.JsonElement
Public Function TransformSchema (schema As JsonElement, transformOptions As AIJsonSchemaTransformOptions) As JsonElement

Parameters

schema
JsonElement

The schema document to transform.

transformOptions
AIJsonSchemaTransformOptions

The options governing schema transformation.

Returns

A new schema document with transformations applied.

Remarks

The schema and any nested schemas are transformed using depth-first traversal.

Applies to