Azure / ShieldGuard

Enables best security practices for your project from day zero.
MIT License
8 stars 6 forks source link

Enable validation on loaded configurations from input and return erro… #37

Open everjing opened 1 year ago

everjing commented 1 year ago

…r when they are not in standardized format.

This PR is a fix for issue https://github.com/Azure/ShieldGuard/issues/32

file: #should be files
  - paths: #should be paths
      - ./tempDataAndPolicy
    policy: #should be policies
      - ./tempDataAndPolicy

Return Error: 'files' is not correctly spelled, resulting a non-standard format

files: #should be files
  - path: #should be paths
      - ./tempDataAndPolicy
    policy: #should be policies
      - ./tempDataAndPolicy

Return Error: 'paths' is not correctly spelled, resulting a non-standard format

files: #should be files
  - paths: #should be paths
      - ./tempDataAndPolicy
    policy: #should be policies
      - ./tempDataAndPolicy

Error: 'policies' is not correctly spelled, resulting a non-standard format