experience-security.html

Authentication, authorization, and the OWASP API Security Top 10 as machine checks.

75 rules experience: security 68 in the file · 7 built-in or validator-only

Run this ruleset

Lint any matching artifact against this ruleset with the OpenLint CLI (the Spectral CLI gives the same results):

npx openlint lint api.yaml \
  --ruleset https://apicommons.org/assets/rulesets/experience-security.yaml

Or run every rule, including the 7 that are engine built-ins or need the validator's own functions, in the API Commons validator. The other 68 are inlined in the file below.

Ruleset definition

Download YAML

Loading…

Rules in this ruleset (75)

API Baseurl HTTPS APIs.json
Asyncapi Operation Security AsyncAPI engine
Asyncapi Server Security AsyncAPI engine
No Eval In Markdown OpenAPI engine

← All experience rulesets