Skip to content
Draft
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
8 changes: 8 additions & 0 deletions .redocly.lint-ignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ openapi.yaml:
- '#/paths/~1quotes/post/requestBody/content/application~1json/schema'
no-ambiguous-paths:
- '#/paths/~1customers~1external-accounts~1{externalAccountId}'
paths-kebab-case:
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1balance_inquiry'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1credit_authorization'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1financial_authorization'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1financial_credit_authorization'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1authorization_advice'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1credit_authorization_advice'
- '#/paths/~1sandbox~1cards~1{id}~1simulate~1return_reversal'
7 changes: 5 additions & 2 deletions .spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ rules:
# Paths (README: Resources)
# ============================================================

# Paths should use kebab-case (path params in {camelCase} are allowed)
# Paths should use kebab-case (path params in {camelCase} are allowed).
# The /sandbox/cards/{id}/simulate/* endpoints are exempted (second branch of
# the pattern): their snake_case segments mirror the card issuer's simulate
# routes verbatim, and the SDK must call those exact deployed URLs.
paths-kebab-case:
description: Path segments should use kebab-case
message: "Path should use kebab-case (e.g., /external-accounts not /externalAccounts). See openapi/README.md#resources"
Expand All @@ -175,4 +178,4 @@ rules:
field: "@key"
function: pattern
functionOptions:
match: "^(\\/([a-z0-9]+(-[a-z0-9]+)*|\\{[a-zA-Z0-9]+\\}))+$"
match: "^((\\/([a-z0-9]+(-[a-z0-9]+)*|\\{[a-zA-Z0-9]+\\}))+|\\/sandbox\\/cards\\/\\{id\\}\\/simulate\\/(balance_inquiry|credit_authorization|financial_authorization|financial_credit_authorization|authorization_advice|credit_authorization_advice|return_reversal))$"
Loading
Loading