asyncapi/saunter

[FEATURE] Support AOT Trimmed applications

Opened this issue · 3 comments

Why do we need this improvement?

Currently, it is not possible to use the library for applications built in aot or with trim enabled.

How will this change help?

Add support for such applications (perhaps not in the full functional scope of the library)

Screenshots

No response

How could it be implemented/designed?

Generate a yml file (or its template) when building the application. At the start of the application, it is slightly mutated according to the environment.

The main thing is to avoid using reflection in runtime.

🚧 Breaking changes

Yes

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!

When trying to implement, it turned out that NewtonsoftAsyncApiDocumentSerializer is not able to deserialize))

Therefore, we will have to start with migrating to the lego library

I will start this task very soon, just have a few loose ends to fix up

I will start this task very soon, just have a few loose ends to fix up

I thought I'd start today)

Then you'd better do it, because I'm not familiar with the lego library at all.