mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(ses): check v2 contact request bodies against the service model CreateContactList, UpdateContactList, CreateContact, UpdateContact and ListContacts read their members by hand. A Topics or TopicPreferences value that was not an array was a Floci-specific BadRequestException, and a topic or preference member of the wrong JSON type was read as its text, so it reached the enum and name validation instead of failing deserialization as on AWS. These operations now check their body against the SES v2 shapes right after the JSON object check, like the send operations. The first member of the wrong JSON type, in body order, is a SerializationException with AWS's deserializer message, ahead of the name validation, the page size and the contact list lookup. The type checks this makes unreachable are removed, including the hand-built AttributesData messages, which the walk now produces through the shared helper. UnsubscribeAll and UseDefaultIfPreferenceUnavailable keep their boolean coercion, and PageSize its integer check. * docs(ses): note the null contact topic element deviation A null element of Topics or TopicPreferences passes the SES v2 shape check like a null address element, but SES then answers it with a 500 InternalFailure. Floci keeps a 400 BadRequestException naming the element. The request member types section only described the address case, "as on AWS", so it now says that this one deviates.