Security policy editor schema validation is not working for merge request approval policies
Summary
There is schema validation on the yaml mode of the policy editor that lets the user know when they have input a value that is incorrect with indicators and tooltips. See Interactive validation in security policy editor (&7843 - closed) for more information
Those do not seem to be showing up.
Steps to reproduce
- Navigate to a project/group => Secure => Policies => New policy => Merge Request Approval => yaml mode
Example Project
What is the current bug behavior?
No indicators show up if the name
is an empty string or the type
is not approval_policy
or scan_execution_policy
What is the expected correct behavior?
Indicators show up if the name
is an empty string or the type
is not approval_policy
or scan_execution_policy
Relevant logs and/or screenshots
Expected | Actual | Console Errors |
---|---|---|
Possible fixes
Edited by Alexander Turinske