Skip to content

Commit 78e309e

Browse files
razor-xseambot
andauthored
fix: DevicesSimulateRemoveBody name (#198)
* fix: Type names using Params instead of Body * ci: Generate code * Revert delete type name changes --------- Co-authored-by: Seam Bot <[email protected]>
1 parent f809a28 commit 78e309e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

generate-routes.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,9 @@ const renderRequestType = ({
452452
// and https://github.com/seamapi/javascript-http/issues/43
453453
const requestFormatToRequestType = (
454454
name: string,
455-
_namespace: string,
455+
namespace: string,
456456
): 'params' | 'body' => {
457+
if (namespace.includes('simulate')) return 'body'
457458
if (['get', 'list', 'view'].includes(name)) return 'params'
458459
if (['delete'].includes(name)) return 'params'
459460
if (name.includes('revoke')) return 'params'

src/lib/seam/connect/routes/devices-simulate.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)