Skip to content

Commit

Permalink
Update .spectral.yml
Browse files Browse the repository at this point in the history
Update following @rartych guidance to avoid issue
  • Loading branch information
bigludo7 authored Oct 8, 2024
1 parent c4b7288 commit 649b471
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .spectral.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CAMARA Project - linting ruleset - documentation avaialable here:
# https://github.com/camaraproject/Commonalities/blob/main/documentation/Linting-rules.md
# 31.01.2024 - initial version
# 10.10.2024 - workaround for Spectral crashing: camara-path-param-id and camara-discriminator-use switched off

extends: "spectral:oas"
functions:
Expand Down Expand Up @@ -87,7 +88,7 @@ rules:
function: pattern
functionOptions:
notMatch: \b(id|Id|ID|iD)\b
recommended: true # Set to true/false to enable/disable this rule
recommended: false # Set to true/false to enable/disable this rule

camara-security-no-secrets-in-path-or-query-parameters:
message: "Sensitive data found in path: {{error}} Consider avoiding the use of Sesentive data "
Expand Down Expand Up @@ -221,7 +222,7 @@ rules:
field: discriminator
function: truthy
description: "Discriminator object is required when using oneOf or anyOf."
recommended: true # Set to true/false to enable/disable this rule
recommended: false # Set to true/false to enable/disable this rule

camara-operationid-casing-convention:
message: Operation Id must be in Camel case "{{error}}"
Expand Down

0 comments on commit 649b471

Please sign in to comment.