Skip to content

Blog

Blog

Notes from more than two decades of .NET engineering

APIs, architecture, testing, tooling and teamwork: practical lessons from real projects, with code you can use. Read the latest posts below or browse by series.

136 posts16 series70 tags

Generate the OpenAPI document your API guidelines want — from code, not by hand

Your organization's API guidelines want an API ID in the info block, camelCase operation IDs, OAuth2 scopes per operation, extensible enums and proper date formats. Editing the generated JSON by hand doesn't scale. How to make ASP.NET Core produce a compliant document, with one attribute that both enforces a scope and documents it.