In the client-with-responses template if you have have
pkg b
components:
responses:
200:
description: "OK"
content:
'application/json':
schema:
$ref: '#/components/schemas/Document'
schemas:
Document:
type: object
properties:
fields:
type: object
additionalProperties:
$ref: '#/components/schemas/Value'
Value:
type: object
properties:
stringValue:
type: string
arrayValue:
$ref: '#/components/schemas/ArrayValue'
ArrayValue:
type: array
items:
$ref: '#/components/schemas/Value'
and in pkg a
paths:
/example:
get:
operationId: exampleGet
responses:
200:
$ref: "./pkgb/spec.yaml#/components/responses/200"
the codegen output doesnt include external refs

I will open a PR with a broken test to showcase an exact replica
In the client-with-responses template if you have have
pkg b
and in pkg a
the codegen output doesnt include external refs
I will open a PR with a broken test to showcase an exact replica