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 538e9ee commit 32f0608
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dev/tykapi-ruleset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ rules:
match: '^(?!\s*$).+'

check-for-jwt-auth:
description: APIs does not have JWT enabled
description: "At least one of 'enable_jwt' or 'use_mutual_tls_auth' must be true."
given: "$.api_definition"
severity: warning
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."

# check-for-jwt-auth:
# description: JWT auth is not enabled
Expand Down

0 comments on commit 32f0608

Please sign in to comment.