Skip to content

Commit 6b08a4c

Browse files
vdusekclaude
andcommitted
fix: inline ErrorDetail in ErrorResponse to fix Spectral ref resolution
Spectral resolves nested $ref paths relative to the referencing file rather than the referenced file, causing ENOENT when response files reference ErrorResponse.yaml which then $refs ErrorDetail.yaml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8bd087 commit 6b08a4c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

apify-api/openapi/components/schemas/common/ErrorResponse.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ required:
44
type: object
55
properties:
66
error:
7-
$ref: ./ErrorDetail.yaml
7+
type: object
8+
properties:
9+
type:
10+
type: string
11+
description: Machine-processable error type identifier.
12+
message:
13+
type: string
14+
description: Human-readable error message describing what went wrong.

0 commit comments

Comments
 (0)