Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion linting/config/.gherkin-lintrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}],
"file-name": ["off", {"style": "kebab-case"}],
"max-scenarios-per-file": ["on", {"maxScenarios": 50, "countOutlineExamples": true}],
"no-restricted-patterns": ["on", {
"no-restricted-patterns": ["off", {
"Global": [
"^globally restricted pattern"
],
Expand Down
12 changes: 12 additions & 0 deletions linting/config/.spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# - 03.12.2024: Corrected camara-path-param-id and camara-discriminator-use to handle null values error in example fields
# - 09.01.2025: Updated info-contact rule
# - 03.06.2025: renamed to: .spectral.yaml
# - 25.07.2025: Added camara-schema-type-check rule


extends: "spectral:oas"
Expand Down Expand Up @@ -268,3 +269,14 @@ rules:
functionOptions:
match: "^\/([a-z0-9]+(-[a-z0-9]+)*)?(\/[a-z0-9]+(-[a-z0-9]+)*|\/{.+})*$" # doesn't allow /asasd{asdas}sadas pattern or not closed braces
recommended: true # Set to true/false to enable/disable this rule

camara-schema-type-check:
message: "Invalid type in schema definition."
severity: error
given: "$.components.schemas.*"
then:
field: type
function: pattern
functionOptions:
match: "^(string|number|integer|boolean|array|object)$"
recommended: true