Skip to content

Commit

Permalink
Updating telco rules .spectral-oas.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Oct 19, 2023
1 parent f4d8f95 commit 14114fa
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .spectral-oas.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
functions:
- check-spelling-code
- check-telco-specific-terms
functionsDir: "./lint_function"
rules:
language-spelling-texts:
Expand All @@ -13,3 +14,23 @@ rules:
- "$..properties.*.description"
then:
function: check-spelling-code
reduce-telco-specific-terminology:
type: style
recommended: true
description: |
This rule checks for telco-specific terminology in your API definitions and suggests more inclusive terms.
given: "$.**" # Define the path to check, you can adjust this path as needed
then:
function: suggestInclusiveTerms
functionOptions:
inclusiveTerms:
- device
- phone number
- network
replacements:
- original: "UE"
recommended: "device"
- original: "MSISDN"
recommended: "phone number"
- original: "mobile network"
recommended: "network"

0 comments on commit 14114fa

Please sign in to comment.