Updated the to_json methods indent type annotation on the AWSObject, and AWSHelperFn to allow for None. Added unit tests to ensure the string representation is as expected.
This change allows for the last option, sending in None to get the most compact representation.
I have no idea if this is a desired change, and I apologize if I should have opened an issue first. The change was so small though I figured why not just open a PR, and if this change isn't desired we can talk about it here. No worries if this isn't something desired for the code base.
Updated the
to_json
methods indent type annotation on theAWSObject
, andAWSHelperFn
to allow for None. Added unit tests to ensure the string representation is as expected.Sending an integer, or string to
json.dumps
indent parameter results in a pretty printed json string with new lines in it. Sending in None results in the most compact representation.For example:
This change allows for the last option, sending in
None
to get the most compact representation.I have no idea if this is a desired change, and I apologize if I should have opened an issue first. The change was so small though I figured why not just open a PR, and if this change isn't desired we can talk about it here. No worries if this isn't something desired for the code base.
Thank you!