TaskSpecToLaunchFormJson
Converts a TaskSpec to an RSJF-compliant JSON schema.
def TaskSpecToLaunchFormJson(
ctx: context.Context,
taskSpec: *task.TaskSpec
) - > *structpb.Struct
Converts a TaskSpec to an RSJF-compliant JSON schema. This function is used to generate a launch form based on the inputs defined in a task specification.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and tracing. |
| taskSpec | *task.TaskSpec | The task specification containing the interface definition from which the launch form schema will be generated. |
Returns
| Type | Description |
|---|---|
*structpb.Struct | A structpb.Struct representing the RSJF-compliant JSON schema for the launch form. |