Currently there is complicated logic to work out the content types of bodies, and if the body is stored in the pact file in an encoded form (i.e. base64).
This proposal is to update the body attributes (and content for messages) to be an object with the following fields:
contentType (string) - The content type of the body
encoded (string or false) - If the body has been encoded, stores the type of encoding (base64 etc.), or false if it is not encoded
Currently there is complicated logic to work out the content types of bodies, and if the body is stored in the pact file in an encoded form (i.e. base64).
This proposal is to update the body attributes (and content for messages) to be an object with the following fields: