forked from Stellar-IndigoPay/Stellar-IndigoPay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.spectral.yaml
More file actions
27 lines (24 loc) · 1.21 KB
/
Copy path.spectral.yaml
File metadata and controls
27 lines (24 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Spectral API linting ruleset for Stellar-IndigoPay
#
# Extends the built-in `spectral:oas` ruleset which validates OpenAPI 3.x
# structure (media examples, schema types, server URLs, path parameters,
# trailing slashes, operation tags, typed enums, etc.).
#
# Custom-project-specific validations (e.g., 429 on mutation endpoints,
# inline response descriptions) are handled by a separate Node.js script
# in scripts/validate-openapi.js — Spectral's built-in functions cannot
# assert on specific response status code keys, and Spectral 6.x YAML
# rulesets do not support custom JavaScript functions out-of-the-box.
#
extends: "spectral:oas"
rules:
# ── Severity overrides for intentional omissions ────────────────
# operationId is recommended but not required — simple or internal
# endpoints may omit it without reducing documentation quality.
operation-operationId: warn
# operation-description is recommended — if the summary is
# sufficiently descriptive, a separate description may be omitted.
operation-description: warn
# Unused components are a minor housekeeping concern, not a spec
# validity issue. Downgraded to info to avoid CI noise.
oas3-unused-component: info