Skip to content

Convert options to text#370

Merged
mtdowling merged 2 commits into0.10from
convert-options-to-text
Apr 15, 2020
Merged

Convert options to text#370
mtdowling merged 2 commits into0.10from
convert-options-to-text

Conversation

@mtdowling
Copy link
Copy Markdown
Member

Use NodeMapper in API Gateway traits

This commit updates API Gateway traits to use the NodeMapper and changes
different getter/setter methods to use NodeMapper compatible API names.
Further, support for omitting the toNode implementation of a class was
added so that the NodeMapper can be used inside of a toNode method.
Finally, support for omitting empty arrays and objects was added so the
NodeMapper doesn't inject a bunch of empty values when it isn't
desirable.

Add CONVERT_TO_TEXT to OPTIONS and cleanup

CONVERT_TO_TEXT is necessary on OPTIONS request otherwise you may see
500 errors from API Gateway. Further, this commit cleans up several
getters/setters on the IntegrationTrait and MockIntegrationTrait to
match what a code generator would produce and how the NodeMapper works.

CONVERT_TO_TEXT is necessary on OPTIONS request otherwise you may see
500 errors from API Gateway. Further, this commit cleans up several
getters/setters on the IntegrationTrait and MockIntegrationTrait to
match what a code generator would produce and how the NodeMapper works.
This commit updates API Gateway traits to use the NodeMapper and changes
different getter/setter methods to use NodeMapper compatible API names.
Further, support for omitting the toNode implementation of a class was
added so that the NodeMapper can be used inside of a toNode method.
Finally, support for omitting empty arrays and objects was added so the
NodeMapper doesn't inject a bunch of empty values when it isn't
desirable.
@mtdowling mtdowling requested a review from kstich April 14, 2020 23:32
@mtdowling mtdowling merged commit 1dc3aa4 into 0.10 Apr 15, 2020
@mtdowling mtdowling deleted the convert-options-to-text branch April 23, 2020 02:18
@kstich kstich mentioned this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants