Koa Oai Router Versions Save

Koa Router, based on OpenAPI, Swagger and Json Schema.

v2.0.3

5 years ago

Update dependencies

v2.0.2

5 years ago

Fix issue #43

v2.0.1

6 years ago

Sorry, 1.x can not be easily upgraded to 2.0 for the sake of simplicity, elegance, maintainability, and extendibility. I want to build a good project, to solve some of the problems we actually encounter better.

If you are using the following features, please migrate as the document says.

Features

  • Built-in Swagger-UI, easy to view and debug
  • Support OpenAPI/Swagger2.0 specification with yaml or json file
  • More friendly and convenient api doc splitting solution
  • Plugin system. Middleware loader, form validator, response handler, error handler supported as plugin
  • Inherit from [Koa-Router][koa-router], maintain the original function, features and performance

Migration

If you are not a 1.x user, please skip this section directly. If you are a 1.x user and want to upgrade to version 2.0, I'm sorry that you will not upgrade to version 2.0 easily. Please read this Migration carefully and follow the operation manual to upgrade.

v2.0.0-alpha.6

6 years ago

Feat: add apiCooker option to handle api before register route

v2.0.0-alpha.5

6 years ago

Feat: swagger-ui showExtensions=true defaultModelsExpandDepth=0

v2.0.0-alpha.4

6 years ago

Refactor: Parse and mount route when routes was called.

To avoid plugin not mount finish, but the route was mounted.

v2.0.0-alpha.3

6 years ago

Refactor: Plugin system change to class style and add support asynchronous function init, before, handler, after.

v2.0.0-alpha.2

6 years ago

Fix: remove limit of plugin arguments types Chore: remove lib directory

v2.0.0-alpha.1

6 years ago

Big changes

  • New usage
  • New plugin system
  • New swagger-ui

Not support smooth upgrade, must migrate

v1.1.2

6 years ago

Enables support for path parameters with hyphens in them.