Migrate 1.1 to 1.2
Contains 3 new features (1 potentially breaking).
App.securitySchemes
new
App.security
new
Route.security
new
- Now supports defining OpenAPI security schemes, allowing proper authentication definitions on schemas and interactive Authorize feature on Swagger. See Authentication.
Dependency Caching new breaking?
- Dependency handler responses will now be cached and reused during parameter resolution for requests, allowing that the same dependency if declared multiple times will execute once per request, reducing complexity. Marked as potentailly breaking because the caching could be unwanted behaviour, to disable caching, set
useCache: false
.
Schema Exclusion for Browser Enforced Headers new
- Some headers are ignored, or not sent by the browser due to security or protocol enforcement. These headers under normal circumstances should be excluded from the OpenAPI parameters schema, this does not affect route implementations. See Basic Parameters.