Skip to content

Commit

Permalink
Fix createRequestBody, update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Aug 22, 2024
1 parent 30e50cf commit 9152261
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const createRequestBody = (operation: OpenapiOperation): Parameter[] => {

return {
name,
type: parsedProperty.type,
jsonType: parsedProperty.type,
format: property.format,
description: parsedProperty.description,
isRequired: requiredProperties.includes(name),
Expand Down
6 changes: 3 additions & 3 deletions test/snapshots/seam-blueprint.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ Generated by [AVA](https://avajs.dev).
isDeprecated: false,
isRequired: true,
isUndocumented: false,
jsonType: 'string',
name: 'acs_system_id',
type: 'string',
},
],
preferredMethod: 'POST',
Expand Down Expand Up @@ -292,8 +292,8 @@ Generated by [AVA](https://avajs.dev).
isDeprecated: false,
isRequired: false,
isUndocumented: false,
jsonType: 'string',
name: 'connected_account_id',
type: 'string',
},
],
preferredMethod: 'POST',
Expand Down Expand Up @@ -330,8 +330,8 @@ Generated by [AVA](https://avajs.dev).
isDeprecated: false,
isRequired: true,
isUndocumented: false,
jsonType: 'string',
name: 'acs_system_id',
type: 'string',
},
],
preferredMethod: 'POST',
Expand Down
Binary file modified test/snapshots/seam-blueprint.test.ts.snap
Binary file not shown.

0 comments on commit 9152261

Please sign in to comment.