Skip to content

Change method naming of AwsProxyRequest for Jackson and other serializers. #262

Closed
@MarvGilb

Description

@MarvGilb

Serializer like Jackson's ObjectMapper are using method names for serialization and deserialization.
Prefixes like get/set/is will be removed and the following String will be used as parameter names.

For the property isBase64Encoded the method names are:

  • isBase64Encoded
  • setIsBase64Encoded

See: https://github.com/awslabs/aws-serverless-java-container/blob/e4f4d4de6016a60d3fe728181d24aa4d91e645ec/aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/model/AwsProxyRequest.java#L171

This leads to a serialization of
{ "base64Encoded" }
which can not be deserialized because the expected value name is: isBase64Encoded

Please rename the getter to getIsBase64Encoded or isIsBase64Encoded, so that the property is serialized as:
{ "isBase64Encoded" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions