guardian / flexible-octopus-converter

An AWS Lambda for converting JSON from Octopus into Thrift.
1 stars 0 forks source link

Be stricter in payload reads #5

Closed jennygrahamjones closed 4 years ago

jennygrahamjones commented 4 years ago

What does this change?

Explicitly looks for the type for both "bundlecache" and "bundle" when determining which type of payload structure the incoming Octopus JSON matches. We were already looking for the type on the cache model, but not on the single bundle payload.

How can we measure success?

We should parse the JSON into the appropriate model in both cases.