guardrail-dev / guardrail-dev/guardrail

path parameters in $refs are not picked up

Open
#1,579 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

given

main.yml:
```
paths:
/my/{path}/somewhere:
$ref: external.yml#/~1my~1{path}~1somewhere
```

external.yml:

```
/my/{path}/somewhere:
parameters:
- in: path
name: path
required: true
get:
operationId: myExternalOp
resonses:
'200':
description: ok
```

no route parameter for path is created in the handler interface

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the main.yml and external.yml examples, then trace how the referenced path is processed into the generated handler interface. Done means the path parameter is present in that interface for the external $ref case, with the existing generation checks passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, scala
Domain
backend-api-design, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.