Skip to content

Commit 97ac69e

Browse files
committed
test(orval): align path key in #1935 fixture with userId path param
Make the standalone projects.yaml a valid OpenAPI document by changing its path key from `/projects` to `/users/{userId}/projects` so the declared `userId` path parameter matches the path template. Update the root $ref accordingly to use the JSON Pointer / percent-encoded escape, mirroring the existing issue-3380 fixture. No change to bundled output.
1 parent 35b7f8c commit 97ac69e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/specifications/issue-1935/issue-1935.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ info:
99
# - the barrel re-exports → external concrete schema file (schemas/UserProjectDTO.yaml)
1010
paths:
1111
'/users/{userId}/projects':
12-
$ref: './path/projects.yaml#/paths/~1projects'
12+
$ref: './path/projects.yaml#/paths/~1users~1%7BuserId%7D~1projects'
1313
components: {}

tests/specifications/issue-1935/path/projects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: User Projects
44
version: 1.0.0
55
paths:
6-
/projects:
6+
/users/{userId}/projects:
77
get:
88
operationId: getUserProjects
99
summary: Retrieve all related projects for the userId

0 commit comments

Comments
 (0)