You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The endpoint should look something like: POST /workflows/entrypointValidate { "task_graph": "contents", "plugin_ids" [...], "entrypoint_parameters": { .. } }
With the response being a message stating the either the yaml is valid or not (with the reason provided by the validation function).
We want to be able to validate an entrypoint yaml before an Entrypoint Resource has been created by the user. To accomplish this the user will need to provide some details of the entrypoint.
See here for an example of constructing the full task engine yaml:
Additionally, the entrypoint services should be updated to prevent the creation of snapshots with invalid yaml. They should return an appropriate error message containing the validation errors from the validation function.
Definition of Done:
The schema, controller, service, and errors are added to implement the yaml validation workflow
task graph yaml is integrated into the entrypoint services to prevent invalid yaml from being commited in a snapshot
New tests are added to cover this feature
All tests pass
Feature is merged into dev
The text was updated successfully, but these errors were encountered:
Add a new workflow for validating the task_graph portion of the entrypoint yaml
This should make use of the existing validation functions here:
https://github.com/usnistgov/dioptra/blob/main/src/dioptra/task_engine/validation.py
The endpoint should look something like:
POST /workflows/entrypointValidate { "task_graph": "contents", "plugin_ids" [...], "entrypoint_parameters": { .. } }
With the response being a message stating the either the yaml is valid or not (with the reason provided by the validation function).
We want to be able to validate an entrypoint yaml before an Entrypoint Resource has been created by the user. To accomplish this the user will need to provide some details of the entrypoint.
See here for an example of constructing the full task engine yaml:
dioptra/src/dioptra/restapi/v1/workflows/lib/export_task_engine_yaml.py
Line 67 in 03d295e
Additionally, the entrypoint services should be updated to prevent the creation of snapshots with invalid yaml. They should return an appropriate error message containing the validation errors from the validation function.
Definition of Done:
The text was updated successfully, but these errors were encountered: