Uh oh!
There was an error while loading. Please reload this page.
Adding Lex v2 event and response - #321
Conversation
Uh oh!
There was an error while loading. Please reload this page.
msailes
commented
Apr 4, 2022
Could you add a test into the serialization module? |
Thanks for the quick feedback, I have added the book trip example event as test case. However, for now there is a mismatch. The Json contains "slots": {
"ReturnDate": null,
"PickUpDate": null,
"DriverAge": null,
"CarType": null,
"PickUpCity": null
}while the result is "slots": {},I'm unsure if that's the primary reason for the failing test and how to best fix this. Additionally, As the test Json right now does not contain all possible fields, I will see if I can capture them in the next few days. Finally, after having merge the current master the LambdaEventSerializersTests appear to have been skipped, at least on my end. |
| private double mixed; | ||
| private double negative; | ||
| private double neutral; | ||
| private double positiv; |
msailes
commented
May 13, 2022
…nt are compiled for the correct architectures
…ng (aws#334) * Fix os compatibility tests by enabling multi-platform build and testing * Extract environment setup script
* Fix os compatibility test local builds on arm64 hosts * Extract log fetching and clean up to separate scripts
msailes
commented
May 14, 2022
Could you check the tests? |
Sordie
commented
May 25, 2022
Hi @msailes, |
msailes
commented
May 28, 2022
The I don't know if this is bad data or possible? @Sordie do you know? |
msailes
commented
May 28, 2022
Same for the |
Sordie
commented
May 28, 2022
@msailes thanks for pointing out where the configuration to exclude null values is, as I had not seen it before. |
msailes
commented
May 28, 2022
@Sordie thank you. I think the tests you've added should be slightly changed then to show this behavior. The actual will be different to the json from the test file because maps which include items will null values are excluded. @andclt, @smirnoal I'm not sure how you want this implementing, maybe two files would be a suitable way? @andclt, @smirnoal I found this a hard problem to track down since there was no specific JSON knowledge in the testing lib. I would suggest with move to JSONassert either in this PR or another seperate one. This library gave much better error messages and I was able to spot the problem straight away. |
msailes
commented
Jun 2, 2022
andclt
commented
Jun 2, 2022
First of all thanks for contributing @Sordie! I agree with @msailes' suggestion. However, if you want to keep those null values after the serialization, I think you can achieve it adding the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andclt
commented
Aug 7, 2022
Hi @Sordie, As I said in a previous message on this thread, I think we should use the I was able to test successfully the following implementation, could you please take a look at it? |
Sordie
commented
Aug 8, 2022
Hi @andclt, thanks for providing a code snippet. I will add your suggestion next week once I have a computer in front of me again. |
Sordie
commented
Aug 21, 2022
Hi @andclt, I have applied your suggestion and removed the now unused json files. |
andclt
commented
Aug 22, 2022
Hi @Sordie, thank you! Approved! |
Issue #, if available:
#242
Description of changes:
Adding both Lex version 2 event and response as defined here: https://docs.aws.amazon.com/lexv2/latest/dg/lambda.html
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.