Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.3 KB

DEVELOPMENT.md

File metadata and controls

72 lines (50 loc) · 1.3 KB

Dev Manual

Development

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

Backlogs

Functional

  1. Simple type casting problems
    1. string, Date
    2. float, string ?
  2. Handle serializer options
    1. Renaming
    2. Exclusion
    3. Groups
  3. Swagger UI Hosting

Operational

  1. Unit tests
  2. CI

Limitations

  1. 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();
});
  1. Parameter default values cannot depend on other parameters.

  2. 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;
    }
}
  1. Binary fields: Uint8Array etc. are not documented.

  2. Content type other than application/json are not documentated

References

Deepkit Framework

Deepkit Book