Our GitHub action seamlessly integrates with your repository to ensure your APIs are consistently of high quality. It enables you to to help you to establish best practices & continuous quality monitoring for your OpenAPI's definitions by seamlessly integrating it to your repository & development workflow.
Usage
To get started add our GitHub action to your repository & configure it to run on Pull Requests and Pushes to ensure continuous quality monitoring.
Getting an API Key
You will need an API key as the GitHub Action uses the Rate My OpenAPI APIs which require the use of an API Key. You can sign up for free at https://api.ratemyopenapi.com/docs to get your API Key.
All reports generated by Rate My OpenAPI are public (with an unguessable UUID URL), even if uploaded with an API Key. Anyone with the URL to your report will be able to access the report.
Basic Setup
Lint an OpenAPI definition file using the default configuration
Code
Advanced Setup
Lint an OpenAPI definition and override the minimum passing score (default is 80 out of 100) and set the maximum number of allowed warnings & errors.
Code
Configuration Options
Code
Example
This example sets rmoa-action up in a workflow that will run on every pull
request created on the repository. The pull request cannot be merged until the
Open API specificaion in the my-api.json file reaches a minimum score of 80.
Code
Source code & documentation at zuplo/rmoa-action
