Research Spike: JSONSchema validation
This template is ONLY used for enhancement requests. Bug reporting or new feature request issues should use the other template options for issue submission.
Current Behavior
JSONSchema validation in the pipeline hangs when catastrophic backtracking occurs for a field in the hardening_manifest.yaml file.
Purpose
It would be helpful if there was an option to set a backtracking limit or timeout within jsonschema.validate to prevent the validation process from hanging before failing. It would also be helpful if the correct pattern that caused catastrophic backtracking displayed after failing.
Plan
- Research other modules for JSONSchema validation
- Potentially put in feature request for timeout/backtracking limit for the JSONSchema module
Acceptance Criteria
- JSONSchema validation only hangs for a defined amount of time/matches
- Correct error message is displayed when failing a pattern match due to catastrophic backtracking
Edited by Kenneth Maguire