Skip to content

[BUG] Validation & encryption middleware don’t work well together #1151

@lensbart

Description

@lensbart

Describe the bug
The validation middleware will throw when calling inngest.send with an encrypted field, because it thinks that the encrypted value is absent

To Reproduce
Steps to reproduce the behavior:

export const inngest = new Inngest({
	middleware: [
		validationMiddleware(),
		encryptionMiddleware({
			key: "something"
		}),
	],
})

System info (please complete the following information):

  • OS: macOS Tahoe
  • npm package Version
		"inngest": "^3.44.4",
		"inngest-cli": "^1.13.1",
  • Framework: React Router
  • Platform N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions