Skip to content

Commit

Permalink
Fix tests. Related to pagopa#141.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioggstream committed Nov 7, 2019
1 parent 363856f commit 92f572c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/gen-api-models.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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<A, O>(type: t.Type<A, O>) { return r.ioResponseDecoder<204, (typeof type)[\\"_A\\"], (typeof type)[\\"_O\\"]>(204, type); }
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ paths:
- in: body
name: body
schema:
type: "#/definitions/Problem"
"$ref": "#/definitions/Problem"
responses:
"204":
description: No content
Expand Down

0 comments on commit 92f572c

Please sign in to comment.