aspnet-minimal-api-openapi

Generate ASP.NET Minimal API endpoints with OpenAPI documentation and typed DTOs.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/rodoHasArrived/Meridian-main --skill aspnet-minimal-api-openapi-rodohasarrived
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspnet-minimal-api-openapi
Source: https://github.com/rodoHasArrived/Meridian-main/tree/main/.claude/plugins/csharp-dotnet-development/skills/aspnet-minimal-api-openapi
Command: npx skills add https://github.com/rodoHasArrived/Meridian-main --skill aspnet-minimal-api-openapi-rodohasarrived

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents Minimal API endpoints from shipping with incomplete, inconsistent, or incorrect OpenAPI/Swagger documentation that breaks client generation and confuses operators.

Core Features & Use Cases

  • Organized, scalable endpoint structure: Use MapGroup(), endpoint filters, and feature-based classes to keep APIs maintainable as they grow.
  • Strongly typed contracts: Define explicit DTOs and validation attributes for requests and responses, using record types and clear model property naming.
  • High-quality OpenAPI output: Generate correct schemas and operations using .NET 10 OpenAPI support, add operation metadata (IDs, summaries/descriptions), and customize transformers for tags, servers, and security.

Quick Start

Create one Minimal API endpoint for your feature using strongly typed request/response DTOs and ensure it produces an accurate OpenAPI operation with clear summaries, descriptions, and schema metadata.

Frequently Asked Questions about aspnet-minimal-api-openapi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate correct OpenAPI documentation for ASP.NET Minimal APIs?

To generate correct OpenAPI documentation for Minimal APIs, define strongly typed request and response DTOs, use typed Results for multiple responses, and apply .NET 10 OpenAPI document and schema transformers for operation metadata. This ensures schemas and summaries are accurate for client generation.

Why does my Minimal API Swagger documentation show incomplete or incorrect schemas?

Minimal API Swagger documentation shows incomplete schemas when endpoints lack strongly typed DTOs, validation attributes, or proper operation naming. Applying schema transformers and explicit model property descriptions ensures the generated OpenAPI metadata is consistent and correct.

How do I structure scalable Minimal API endpoints with proper Swagger documentation?

Structure scalable Minimal API endpoints by using MapGroup() for organized routes, applying endpoint filters, and organizing logic into feature-based classes. This approach keeps APIs maintainable while producing correct Swagger documentation as the API grows.

Can I use .NET 10 OpenAPI support to add summaries and descriptions to Minimal API endpoints?

Yes, .NET 10 OpenAPI support allows you to add operation metadata like IDs, summaries, and descriptions to Minimal API endpoints. You can customize document and schema transformers to enforce consistent tagging, servers, and security across your API.

What is the best way to handle multi-response Results in Minimal API OpenAPI generation?

The best way to handle multi-response Results in Minimal API OpenAPI generation is using typed Results. This explicitly defines multiple response types in your endpoint contracts, allowing the OpenAPI generator to accurately map each possible response status and content type.

How do I add validation-aware DTOs to my Minimal API endpoints for accurate OpenAPI output?

Add validation-aware DTOs to Minimal API endpoints by defining explicit record types with validation attributes for requests and responses. This ensures the OpenAPI output correctly reflects validation constraints and property naming for client generation.