pyats icon indicating copy to clipboard operation
pyats copied to clipboard

pyats validate testbed: Raise all errors at the same time

Open extsoft opened this issue 7 years ago • 1 comments

If there are several errors, the only first error is displayed during the validation. Please check out the sample below:

(pyats) ~/tmp pyats validate testbed  tb.yaml 
Loading testbed file: tb.yaml
--------------------------------------------------------------------------------

devices.vm: Missing keys: ['connections']

(pyats) ~/tmp cat tb.yaml 
devices:
    vm:
      os: 'linux'
      dd:
        f: a
      type: 'linux'
      ddd: ddd
(pyats) ~/tmp 

It will be great if we see all possible errors at the same time.

extsoft avatar Nov 01 '18 13:11 extsoft

not exactly easy to fix. there's a lot of recursion on these validation logic.

simingy avatar Nov 01 '18 14:11 simingy