If you would like to become an active contributor to this project please follow the instructions in the Microsoft Azure Projects Contribution Guidelines.
- You are welcome to submit an issue with a bug report or a feature request.
- If you are reporting a bug, please indicate which version of the package you are using and provide steps to reproduce the problem.
- If you are submitting a feature request, please indicate if you are willing or able to submit a PR for it.
JavaScript code in this project should follow the AirBnB JavaScript Style Guide as enforced by the ESLint tool
with the configuration file .eslintrc.js
in the root of the project.
Markdown files in this project should follow the style enforced by the markdownlint tool,
as configured by the .markdownlint.json
file in the root of the project.
Rules in the Spectral rules file spectral.yaml
should be listed in alphabetical order by rule name.
To build and test the project locally, clone the repo and issue the following commands
npm install
npm test
When you add a new rule there are a number of places you should consider including:
spectral.yaml
should define the new rule, possibly pointing to a new function used by the rule.functions
directory to hold any new function for the rule.test\<rulename>.test.js
should test at least the error and no-error cases of the rule.openapi-style-guide.md
should be updated with the style guideline that the rule enforces.docs/azure-ruleset.md
should describe the new rule.docs/crossref.md
should be updated if the rule corresponds to anazure-openapi-validator
rule.
This project's code of conduct can be found in the CODE_OF_CONDUCT.md file (v1.4.0 of the CoC).