Postman supports API governance rules for API specifications in OpenAPI 3.1, OpenAPI 3.0, and OpenAPI 2.0 formats in Spec Hub.
Rule customization. Enterprise teams can also customize the rules that Postman applies to API specifications. For more information, see Configure API governance rules.
To check the governance rule violations in an API specification in Spec Hub, do the following:
To learn more, see View rule violations in your specification.
This feature is available with Postman Enterprise plans.
You can configure your CI/CD pipeline to enforce the API Governance rules configured for your team every time the pipeline runs. To do this, generate a Postman CLI configuration. Then add the generated configuration to the CI/CD pipeline you’re using.
To generate a Postman CLI configuration, do the following:
For the list of all the rule violations that Postman might show at the API specification phase of development, see OpenAPI 3 rules and OpenAPI 2 rules.