-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate Workflow interfaces from json-schema via jjson2ts
- Loading branch information
Showing
4 changed files
with
233 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Workflow", | ||
"type": "object", | ||
"properties": { | ||
"schemaVersion": { | ||
"type": "string", | ||
"default": "0.0.1" | ||
}, | ||
"tasks": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Task" | ||
}, | ||
"description": "Worfklow tasks." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the workflow." | ||
}, | ||
"parameters": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Optional parameters for the workflow." | ||
}, | ||
"schedule": { | ||
"type": "string", | ||
"description": "Optional schedule in cron format." | ||
}, | ||
"timezone": { | ||
"type": "string", | ||
"description": "Timezone for the schedule." | ||
} | ||
}, | ||
"required": [ | ||
"tasks", | ||
"name" | ||
], | ||
"definitions": { | ||
"Task": { | ||
"type": "object", | ||
"properties": { | ||
"input_uri": { | ||
"type": "string", | ||
"description": "The URI of the input file." | ||
}, | ||
"runtime_environment_name": { | ||
"type": "string", | ||
"description": "Name of the runtime environment." | ||
}, | ||
"runtime_environment_parameters": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Parameters for the runtime environment." | ||
}, | ||
"output_formats": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"parameters": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Task-specific parameters." | ||
}, | ||
"tags": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Tags for categorizing the job." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the job." | ||
}, | ||
"compute_type": { | ||
"type": "string", | ||
"description": "Type of compute resource to use." | ||
}, | ||
"package_input_folder": { | ||
"type": "boolean", | ||
"description": "Whether to package the input folder." | ||
}, | ||
"depends_on": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "DAG node IDs of tasks this task depends on." | ||
}, | ||
"node_id": { | ||
"type": "string", | ||
"description": "DAG node ID of this task." | ||
} | ||
}, | ||
"required": [ | ||
"input_uri", | ||
"name", | ||
"node_id" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters