asyncapi / saunter

Saunter is a code-first AsyncAPI documentation generator for dotnet.
https://www.asyncapi.com/
MIT License
203 stars 57 forks source link

Only generate schema on initial request #198

Open thompson-tomo opened 5 months ago

thompson-tomo commented 5 months ago

Why do we need this improvement?

To improve performance of the middleware the schema generation should only occur on initial request at which point the schema should either be cached to file or more likely memory.

How will this change help?

Decrease computation needed hence an improvement in performance.

How could it be implemented/designed?

🚧 Breaking changes

No

Additional info

N/a

yurvon-screamo commented 5 months ago

Hi, check #187. I`m start implementing this.

PS: pls, use issue template in future)

thompson-tomo commented 5 months ago

As mentioned there is issues with the templates where they are putting them in the wrong project hence the manual creation.

Please reopen this issue as what I am asking for is not addressed by the mentioned issue, I want it to work as it is now except generation only occurs on initial request at which point it is cached.