All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ===============================================================================
2 ALE OpenApi Integration *ale-openapi-options*
5 ===============================================================================
6 ibm_validator *ale-openapi-ibm-validator*
8 Website: https://github.com/IBM/openapi-validator
11 -------------------------------------------------------------------------------
14 Install ibm-openapi-validator either globally or locally: >
16 npm install ibm-openapi-validator -g # global
17 npm install ibm-openapi-validator # local
20 -------------------------------------------------------------------------------
23 OpenAPI files can be written in YAML or JSON so in order for ALE plugins to
24 work with these files we must set the buffer |filetype| to either |openapi.yaml|
25 or |openapi.json| respectively. This causes ALE to lint the file with linters
26 configured for openapi and yaml files or openapi and json files respectively.
28 For example setting filetype to |openapi.yaml| on a buffer and the following
29 |g:ale_linters| configuration will enable linting of openapi files using both
30 |ibm_validator| and |yamlint|:
34 \ 'yaml': ['yamllint'],
35 \ 'openapi': ['ibm_validator']
39 The following plugin will detect openapi files automatically and set the
40 filetype to |openapi.yaml| or |openapi.json|:
42 https://github.com/hsanson/vim-openapi
45 -------------------------------------------------------------------------------
47 *ale-options.openapi_ibm_validator_executable*
48 *g:ale_openapi_ibm_validator_executable*
49 *b:ale_openapi_ibm_validator_executable*
50 openapi_ibm_validator_executable
51 g:ale_openapi_ibm_validator_executable
53 Default: `'lint-openapi'`
55 This variable can be set to change the path to lint-openapi.
57 *ale-options.openapi_ibm_validator_options*
58 *g:ale_openapi_ibm_validator_options*
59 *b:ale_openapi_ibm_validator_options*
60 openapi_ibm_validator_options
61 g:ale_openapi_ibm_validator_options
65 This variable can be set to pass additional options to lint-openapi.
68 ===============================================================================
69 prettier *ale-openapi-prettier*
71 See |ale-javascript-prettier| for information about the available options.
74 ===============================================================================
75 yamllint *ale-openapi-yamllint*
77 See |ale-yaml-yamllint| for information about the available options.
80 ===============================================================================
81 vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: