Skip to content

AOT compatibility #2967

Open
Open
@cacowen

Description

@cacowen

Is your feature request related to a problem? Please describe.

Currently the workflow to capture Webhooks and other models depends on direct JSON transformations and furthermore relies on Newtonsoft. These add a lot of overhead in my otherwise simple Lambda function. And pretty much eliminates the AOT benefits.

Describe the solution you'd like

I would like to be able to use stripe-dotnet in a .Net 8 AOT AWS Lambda Function without bypassing trimming and other AOT features. It would be nice to have stripe models that do not rely on Newtonsoft and can easily be added to a JSON serializer context.

Describe alternatives you've considered

No response

Additional context

Perhaps I am just using this the wrong way. I have tried to follow examples here and in YouTube (including the Stripe Developers channel). So far, I have not been able to use this in an AOT application in a straightforward and clean way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions