Skip to content

Commit

Permalink
fix(shelly): don't use strict for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nckhell committed Jan 28, 2025
1 parent d429d2a commit b3b17af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/shelly/lib/validatePayloadAndCreateSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { type Activity } from '@awell-health/extensions-core/dist/types/Activity

type ValidatePayloadAndCreateSdk = <
T extends z.ZodTypeAny,
P extends NewActivityPayload<any, any>
P extends NewActivityPayload<any, any>,
>(args: {
fieldsSchema: T
payload: P
Expand All @@ -28,7 +28,7 @@ export const validatePayloadAndCreateSdk: ValidatePayloadAndCreateSdk = async ({
const { settings, fields } = validate({
schema: z.object({
fields: fieldsSchema,
settings: z.object({}).strict(),
settings: z.object({}),
pathway: z.object({
id: z.string(),
definition_id: z.string(),
Expand Down

0 comments on commit b3b17af

Please sign in to comment.