diff --git a/src/__tests__/__snapshots__/gen-api-models.test.ts.snap b/src/__tests__/__snapshots__/gen-api-models.test.ts.snap index 629ee252..5558f836 100644 --- a/src/__tests__/__snapshots__/gen-api-models.test.ts.snap +++ b/src/__tests__/__snapshots__/gen-api-models.test.ts.snap @@ -516,7 +516,7 @@ exports[`gen-api-models should support generate requestbody 1`] = ` */ // Request type definition - export type TestRequestBodyT = r.IPostApiRequestType<{readonly body?: #/definitions/Problem}, \\"Content-Type\\", never, r.IResponseType<204, undefined>>; + export type TestRequestBodyT = r.IPostApiRequestType<{readonly problem?: Problem}, \\"Content-Type\\", never, r.IResponseType<204, undefined>>; // Decodes the success response with a custom success type export function testRequestBodyDecoder(type: t.Type) { return r.ioResponseDecoder<204, (typeof type)[\\"_A\\"], (typeof type)[\\"_O\\"]>(204, type); } diff --git a/src/__tests__/api.yaml b/src/__tests__/api.yaml index 6d560753..e114fa46 100644 --- a/src/__tests__/api.yaml +++ b/src/__tests__/api.yaml @@ -70,7 +70,7 @@ paths: - in: body name: body schema: - type: "#/definitions/Problem" + "$ref": "#/definitions/Problem" responses: "204": description: No content