Duke-GCB / bespin-api

Web application for running workflows in the cloud
MIT License
0 stars 2 forks source link

Validate job template #182

Closed johnbradley closed 5 years ago

johnbradley commented 5 years ago

Adds api/v2/job-templates/validate endpoint that receives a job template and validates it. Changes serializer used by api/v2/job-templates/create-job endpoint to perform this validation as well.

Adds job template logic from bespin-cli: https://github.com/Duke-GCB/bespin-cli/blob/6138a5432f60d02791784ffc2b7876db06fe5bf7/bespin/jobtemplate.py New changes to this existing logic include validating that the job_order in the job template has the expected keys based on the user fields derived from the specified WorkflowVersion and WorkflowConfiguration.