Skip to content

Commit

Permalink
update linter ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Le authored and Long Le committed Sep 12, 2024
1 parent 1718810 commit c9909c4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dev/tykapi-auth-ruleset.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
extends: 'spectral:oas'

rules:
check-for-jwt-auth:
description: APIs does not have JWT enabled
check-authentication-methods:
description: "At least one of 'enable_jwt' or 'use_mutual_tls_auth' must be true."
given: "$.api_definition"
severity: error
then:
field: 'enable_jwt'
function: falsy
- condition: "truthy"
field: "enable_jwt"
or:
- condition: "truthy"
field: "use_mutual_tls_auth"
severity: error
message: "At least one of 'api_definition.enable_jwt' or 'api_definition.use_mutual_tls_auth' must be true."

0 comments on commit c9909c4

Please sign in to comment.