An open API service indexing awesome lists of open source software.

https://github.com/danielmackay/dotnet-openapi-fully-qualified-schema


https://github.com/danielmackay/dotnet-openapi-fully-qualified-schema

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

          

# .NET OpenAPI Fully Qualified Namespace

Attempt to reproduce an issue with .NET 9 OpenAPI & Scalar when DTOs with the same class name, but different namespace would cause a conflict.

When using swagger we would solve this by using the namespace to fully qualify the model name in the OpenAPI schema.

## Conclusion

With .NET 9 OpenAPI & Scalar, this is no longer an issue!

Two classes with the same name (i.e. `WeatherForecast`) will automatically have a number suffix added to avoid any conflict.

image