I wrote AWS Lambda handler using Feral IOLambda.Simple to handle IoT device (not Amazon IoT Button, but SORACOM's one) click event.
Since my IoT provider directly invokes lambda, lambda receives completely different Context from environment (for example it contains simId field). Thus runtime throws Cannot read properties of undefined (reading 'installationId') when decoding Context. When I invoke the lambda manually, the error does not occur.
Unfortunately, I cannot avoid this bahavior because decoding Context is completely untouchable.

In my use-case I don't need Context but input.
Would you mind to make Context type overridable and fully customizable?
Appendix
For example SORACOM's context is described here: https://users.soracom.io/ja-jp/docs/funk/format/#nodejs-%E3%83%A9%E3%83%B3%E3%82%BF%E3%82%A4%E3%83%A0%E3%81%AE%E5%A0%B4%E5%90%88
I wrote AWS Lambda handler using Feral
IOLambda.Simpleto handle IoT device (not Amazon IoT Button, but SORACOM's one) click event.Since my IoT provider directly invokes lambda, lambda receives completely different
Contextfrom environment (for example it containssimIdfield). Thus runtime throwsCannot read properties of undefined (reading 'installationId')when decodingContext. When I invoke the lambda manually, the error does not occur.Unfortunately, I cannot avoid this bahavior because decoding
Contextis completely untouchable.In my use-case I don't need
Contextbut input.Would you mind to make
Contexttype overridable and fully customizable?Appendix
For example SORACOM's context is described here: https://users.soracom.io/ja-jp/docs/funk/format/#nodejs-%E3%83%A9%E3%83%B3%E3%82%BF%E3%82%A4%E3%83%A0%E3%81%AE%E5%A0%B4%E5%90%88