To initialize the project:
git clone https://github.com/hanayashiki/deepkit-openapi
cd deepkit-openapi
yarn
To build the libraries, run the following command at the monorepo root:
yarn tsc-watch
- Simple type casting problems
- string, Date
- float, string ?
- Handle serializer options
- Renaming
- Exclusion
- Groups
Swagger UI Hosting
Unit tests- CI
- Functional routers not supported.
// Will not be documented
router.get('/user/:id', async (id: number, database: Database) => {
return await database.query(User).filter({id}).findOne();
});
-
Parameter default values cannot depend on other parameters.
-
Parameter resolver
@http.resolveParameter(User, UserResolver)
class MyWebsite {
// Does not know user is derived from path parameter `id: number`
@http.GET(':id')
getUser(user: User) {
return 'Hello ' + user.username;
}
}
-
Binary fields:
Uint8Array
etc. are not documented. -
Content type other than
application/json
are not documentated