Skip to content

Commit df17adb

Browse files
Merge pull request #25 from jentic/char0n/24-response-coverage
docs(spec): rederine response_coverage signal
2 parents 1a5e1f1 + 79d140d commit df17adb

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

docs/specification/spec.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,26 @@ Where readability_score ∈ [8, 16] (`8` is easy to read, `16` would be legalese
340340

341341
#### Response Coverage (response_coverage)
342342

343+
Measures the percentage of operations that define complete response outcomes.
344+
Uses graded scoring per operation based on response categories present.
345+
346+
**Formula:**
347+
343348
```text
344-
response_coverage = operations_with_meaningful_responses / total_operations
349+
response_coverage = sum(operation_response_coverage) / total_operations
345350
```
346351

352+
Where:
353+
354+
Each operation receives an `operation_response_coverage` from 0.0 to 1.0:
355+
356+
- +0.25 if at least one 2XX response is defined
357+
- +0.25 if at least one 4XX response is defined
358+
- +0.25 if at least one 5XX response is defined
359+
- +0.25 if default response is defined
360+
361+
If `total_operations = 0`, the value MUST be `1.0`.
362+
347363
#### Tooling Readiness (tooling_readiness)
348364

349365
```text

0 commit comments

Comments
 (0)