OpenAPI in .NET 9 and 10! .NET Day Switzerland 2025 Sander ten Brinke https://github.com/sander1095/openapi-dotnet9-talk https://stenbrinke.nl New to OpenAPI or its use-cases? Read my blog post!
@ Arcady • Backend, App, Cloud, DevOps, Frontend.. sander1095 [email protected] stenbrinke.nl Let’s connect! @sandertenbrinke Sander ten Brinke New to OpenAPI or its use-cases? Read my blog post!
future of OpenAPI in .NET Conclusion Resources Questions Feel free to interrupt and ask questions! Demos New to OpenAPI or its use-cases? Read my blog post!
OpenAPI document dotnet build • Build the ASP.NET Core application • Add required package dotnet add package Microsoft.Extensions.ApiDescription.Server Why: Store in source control, lint in pipeline, run integration tests...
merged 5+ pull requests in ASP.NET Core’s OpenAPI module for .NET 10! XML comment support •Currently in preview! OpenAPI v3.1 support •OpenAPI v4 support is unlikely.. Better build- time generation? •The current package wasn’t built for Microsoft’s own library Other features •Attaching transformers to endpoints directly •YAML support •Bug fixes
OpenAPI! AOT support is one of the biggest changes, next to Microsoft shipping their own OpenAPI library, which changes the way you set up OpenAPI in .NET projects. By decorating your API endpoints royally with OpenAPI metadata, you’ll make your API easier to use, so try to do this much as possible! Scan me or !
• https://stenbrinke.nl/blog/openapi-api-client-generation • Demo: https://github.com/sander1095/openapi-dotnet9-talk Feel free to take a picture ! Scan me or !