AIJsonUtilities.TransformSchema Method
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.
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.