Skip to content

0.0.2-preview

Pre-release
Pre-release

Choose a tag to compare

@vjppaz vjppaz released this 13 Jul 17:07
· 7 commits to main since this release

Release Notes

Features & Improvements

Expanded Example Coverage:

  • Added UsersController and TypesController to the example project, demonstrating a wide variety of HTTP methods, route patterns, primitive and nullable types, and object results.

Robust Argument Mapping:

  • Introduced a flexible argument mapping system using handler classes for [FromBody], [FromHeader], and default/fallback scenarios.
  • Added ParameterMapper and multiple IMethodArgumentHandler implementations for extensible parameter binding.

API Result Handling Overhaul:

  • Unified and simplified result handling by removing specialized handlers (OkObjectResultHandler, BadRequestObjectResultHandler) in favor of a more general ObjectResultHandler and others.
  • All result handlers now support an expectedStructuredContent flag for better structured vs. text response control.
  • Improved error and status code handling with new StatusCodeResultHandler and enhanced DefaultResultHandler.

Swagger/OpenAPI Integration:

  • Improved input schema generation to support request body parameters and more accurate OpenAPI schema conversion.
  • Output schema generation now gracefully handles unsupported array schemas.

Serialization Enhancements:

  • Updated JsonSerializerOptions to ignore null values by default for cleaner output.

Testing & Maintenance

Test Suite Updates:

  • Updated tests to match new handler signatures and behaviors.
  • Removed obsolete or redundant test files for deleted handlers.
  • Improved test coverage for various result and argument mapping scenarios.