test_ibm_openapi_validator_handler.vader
1 Before: 2 runtime! ale_linters/openapi/ibm_validator.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(Problems should be parsed correctly for openapi-ibm-validator): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 54, 12 \ 'col': 0, 13 \ 'type': 'E', 14 \ 'text': 'Items with a description must have content in it.', 15 \ }, 16 \ { 17 \ 'lnum': 24, 18 \ 'col': 0, 19 \ 'type': 'W', 20 \ 'text': 'Operations must have a non-empty `operationId`.', 21 \ }, 22 \ { 23 \ 'lnum': 40, 24 \ 'col': 0, 25 \ 'type': 'W', 26 \ 'text': 'operationIds must follow case convention: lower_snake_case', 27 \ }, 28 \ ], 29 \ ale_linters#openapi#ibm_validator#Handle(bufnr(''), [ 30 \ '', 31 \ '[Warning] No .validaterc file found. The validator will run in default mode.', 32 \ 'To configure the validator, create a .validaterc file.', 33 \ '', 34 \ 'errors', 35 \ '', 36 \ ' Message : Items with a description must have content in it.', 37 \ ' Path : paths./settings.patch.description', 38 \ ' Line : 54', 39 \ '', 40 \ 'warnings', 41 \ '', 42 \ ' Message : Operations must have a non-empty `operationId`.', 43 \ ' Path : paths./stats.get.operationId', 44 \ ' Line : 24', 45 \ '', 46 \ ' Message : operationIds must follow case convention: lower_snake_case', 47 \ ' Path : paths./settings.get.operationId', 48 \ ' Line : 40' 49 \ ])